1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00

looks like this approach will give us our exceptions back

This commit is contained in:
Wez Furlong
2004-07-28 00:10:28 +00:00
parent 23475d4147
commit d6bfe18b20

View File

@@ -275,7 +275,6 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
H = pecalloc(1, sizeof(pdo_mysql_db_handle), dbh->is_persistent);
dbh->methods = &mysql_methods;
H->einfo.errcode = 0;
H->einfo.errmsg = NULL;
@@ -313,6 +312,7 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_
dbh->alloc_own_columns = 1;
dbh->supports_placeholders = 0;
dbh->max_escaped_char_length = 2;
dbh->methods = &mysql_methods;
ret = 1;
@@ -322,6 +322,8 @@ cleanup:
efree(vars[i].optval);
}
}
dbh->methods = &mysql_methods;
return ret;
}