mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
PDO MySQL: Use correct type when setting INT_AND_FLOAT_NATIVE
mysqlnd expects this to be an unsigned int, not a bool.
This commit is contained in:
parent
710f3985c5
commit
73533c7dc9
1 changed files with 1 additions and 1 deletions
|
@ -827,7 +827,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options)
|
|||
}
|
||||
|
||||
#ifdef PDO_USE_MYSQLND
|
||||
bool int_and_float_native = true;
|
||||
unsigned int int_and_float_native = 1;
|
||||
if (mysql_options(H->server, MYSQLND_OPT_INT_AND_FLOAT_NATIVE, (const char *) &int_and_float_native)) {
|
||||
pdo_mysql_error(dbh);
|
||||
goto cleanup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue