- Explicitly make the default default FETCH_BOTH

This commit is contained in:
Marcus Boerger 2006-03-19 20:08:29 +00:00
parent 786d78f683
commit ef6d420aad

View File

@ -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);