diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-27 17:36:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-10-27 17:36:59 +0200 |
commit | 181d29c9e0583e0475a122efa6e00c68130136c9 (patch) | |
tree | 6b31f1d310b1aba275f072c927215f4adc4ed25d | |
parent | 3f7e8da389c3b035fd95d37522f0bd60fe4b20cc (diff) |
Implement support for composite value types
New test: common/composite.
-rw-r--r-- | odb/mysql/mysql-types.hxx | 1 | ||||
-rw-r--r-- | odb/mysql/result.txx | 4 |
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. |