From d6bfe18b203b06fbbe730d6feb8f7f23c861afce Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Wed, 28 Jul 2004 00:10:28 +0000 Subject: [PATCH] looks like this approach will give us our exceptions back --- ext/pdo_mysql/mysql_driver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index 7ea65c06c72..700543ab5b7 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; }