diff options
Diffstat (limited to 'base/mysql.hh')
-rw-r--r-- | base/mysql.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/mysql.hh b/base/mysql.hh index 2278d42e7..ae28a9dfb 100644 --- a/base/mysql.hh +++ b/base/mysql.hh @@ -33,6 +33,7 @@ #include <cassert> #include <iosfwd> +#include <mysql_version.h> #include <mysql.h> #include <string> #include <sstream> @@ -89,6 +90,8 @@ class Result { if (result) refcount = new int(1); + else + refcount = NULL; } Result(const Result &result) |