diff options
Diffstat (limited to 'libmysqlpp/my-command.h')
-rw-r--r-- | libmysqlpp/my-command.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmysqlpp/my-command.h b/libmysqlpp/my-command.h index 9b6d72a..4a6426b 100644 --- a/libmysqlpp/my-command.h +++ b/libmysqlpp/my-command.h @@ -37,7 +37,7 @@ namespace MySQL { void * realloc(void * buffer, size_t size); const Connection * c; - MYSQL_STMT * stmt; + std::unique_ptr<MYSQL_STMT, decltype(&mysql_stmt_close)> stmt; typedef std::vector<MYSQL_BIND> Binds; Binds binds; bool paramsNeedBinding; |