mirror of
https://github.com/php/php-src.git
synced 2024-09-24 03:17:26 +00:00
- Explicitly make the default default FETCH_BOTH
This commit is contained in:
parent
786d78f683
commit
ef6d420aad
@ -349,6 +349,7 @@ static PHP_METHOD(PDO, dbh_constructor)
|
||||
dbh->data_source = (const char*)pestrdup(colon + 1, is_persistent);
|
||||
dbh->username = username ? pestrdup(username, is_persistent) : NULL;
|
||||
dbh->password = password ? pestrdup(password, is_persistent) : NULL;
|
||||
dbh->default_fetch_type = PDO_FETCH_BOTH;
|
||||
|
||||
dbh->auto_commit = pdo_attr_lval(options, PDO_ATTR_AUTOCOMMIT, 1 TSRMLS_CC);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user