aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--odb/mysql/mysql-types.hxx1
-rw-r--r--odb/mysql/result.txx4
2 files changed, 4 insertions, 1 deletions
diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
index 620904f..7b8d471 100644
--- a/odb/mysql/mysql-types.hxx
+++ b/odb/mysql/mysql-types.hxx
@@ -9,6 +9,7 @@
#include <odb/mysql/details/config.hxx>
typedef char my_bool;
+typedef struct st_mysql_bind MYSQL_BIND;
#ifdef LIBODB_MYSQL_INCLUDE_SHORT
# include <mysql_time.h>
diff --git a/odb/mysql/result.txx b/odb/mysql/result.txx
index fb316b5..ca27dd1 100644
--- a/odb/mysql/result.txx
+++ b/odb/mysql/result.txx
@@ -45,7 +45,9 @@ namespace odb
if (traits::grow (i, statements_.image_error ()))
{
- traits::bind (statements_.image_binding (), i);
+ binding& b (statements_.image_binding ());
+ traits::bind (b.bind, i);
+ b.version++;
statement_->refetch ();
}
// Fall throught.