From: Wez Furlong Date: Wed, 28 Jul 2004 00:10:28 +0000 (+0000) Subject: looks like this approach will give us our exceptions back X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6bfe18b203b06fbbe730d6feb8f7f23c861afce;p=php looks like this approach will give us our exceptions back --- diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 7ea65c06c7..700543ab5b 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -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; }