From d777f6104f1e59a753bd1c29ebfc8945bc4572cf Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 9 Mar 2018 07:23:14 -0500 Subject: [PATCH] add a method to access the underlying MYSQL_ROW --- src/zm_db.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/zm_db.h b/src/zm_db.h index 267995e70..de47a6108 100644 --- a/src/zm_db.h +++ b/src/zm_db.h @@ -33,6 +33,8 @@ class zmDbRow { zmDbRow( MYSQL_RES *, MYSQL_ROW *row ); ~zmDbRow(); + MYSQL_ROW mysql_row() const { return row; }; + char *operator[](unsigned int index) const { return row[index]; }