diff options
-rw-r--r-- | odb/mysql/statement.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/odb/mysql/statement.cxx b/odb/mysql/statement.cxx index 8606754..2ad4eb0 100644 --- a/odb/mysql/statement.cxx +++ b/odb/mysql/statement.cxx @@ -121,7 +121,9 @@ namespace odb t->prepare (conn_, *this); } - if (mysql_stmt_prepare (stmt_, text_, text_size) != 0) + if (mysql_stmt_prepare (stmt_, + text_, + static_cast<unsigned long> (text_size)) != 0) translate_error (conn_, stmt_); } |