Skip to content

Commit 1b397ce

Browse files
committed
Fix dynamic binding
1 parent df117a0 commit 1b397ce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

driver/nativeapi/libmysql_dynamic_proxy.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ LibmysqlDynamicProxy::options(MYSQL * mysql, enum mysql_option option, const voi
440440
int
441441
LibmysqlDynamicProxy::get_option(MYSQL * mysql, enum mysql_option option, const void *arg)
442442
{
443-
ptr2mysql_get_option ptr2_get_option = symbol_safe_cast<ptr2mysql_options4>(GetProcAddr("mysql_get_option"));
443+
ptr2mysql_get_option ptr2_get_option = symbol_safe_cast<ptr2mysql_options>(GetProcAddr("mysql_get_option"));
444444
if (ptr2_get_option != NULL) {
445445
if (((*ptr2_get_option)(mysql, option, arg))) {
446446
throw sql::InvalidArgumentException("Unsupported option provided to mysql_get_option()");
@@ -819,7 +819,7 @@ LibmysqlDynamicProxy::stmt_free_result(MYSQL_STMT * stmt)
819819
{
820820
ptr2mysql_stmt_free_result ptr2_stmt_free_result = symbol_safe_cast<ptr2mysql_stmt_free_result>(GetProcAddr("mysql_stmt_free_result"));
821821

822-
return (*ptr2_stmt_next_result)(stmt);
822+
return (*ptr2_stmt_free_result)(stmt);
823823
}
824824
/* }}} */
825825

driver/nativeapi/mysql_client_api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <boost/shared_ptr.hpp>
3535
#include <cppconn/sqlstring.h>
3636

37-
//#include "binding_config.h"
37+
#include "binding_config.h"
3838

3939
#ifdef MYSQLCLIENT_STATIC_BINDING
4040
/* MySQL client library is linked */

0 commit comments

Comments
 (0)