Skip to content

Commit 73533c7

Browse files
committed
PDO MySQL: Use correct type when setting INT_AND_FLOAT_NATIVE
mysqlnd expects this to be an unsigned int, not a bool.
1 parent 710f398 commit 73533c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_mysql/mysql_driver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options)
827827
}
828828

829829
#ifdef PDO_USE_MYSQLND
830-
bool int_and_float_native = true;
830+
unsigned int int_and_float_native = 1;
831831
if (mysql_options(H->server, MYSQLND_OPT_INT_AND_FLOAT_NATIVE, (const char *) &int_and_float_native)) {
832832
pdo_mysql_error(dbh);
833833
goto cleanup;

0 commit comments

Comments
 (0)