From a9d98544de4a41bba3542b6b5bcd1f18e18af073 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 18 Jan 2005 04:58:50 +0000 Subject: Allow drivers to select bind emulation on a per statement basis --- ext/pdo_mysql/mysql_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pdo_mysql') diff --git a/ext/pdo_mysql/mysql_driver.c b/ext/pdo_mysql/mysql_driver.c index f0f0da3398..5f7b573b7b 100755 --- a/ext/pdo_mysql/mysql_driver.c +++ b/ext/pdo_mysql/mysql_driver.c @@ -143,6 +143,7 @@ static int mysql_handle_preparer(pdo_dbh_t *dbh, const char *sql, long sql_len, S->H = H; stmt->driver_data = S; stmt->methods = &mysql_stmt_methods; + stmt->supports_placeholders = PDO_PLACEHOLDER_NONE; return 1; } @@ -287,7 +288,6 @@ static int pdo_mysql_handle_factory(pdo_dbh_t *dbh, zval *driver_options TSRMLS_ H->attached = 1; dbh->alloc_own_columns = 1; - dbh->supports_placeholders = 0; dbh->max_escaped_char_length = 2; dbh->methods = &mysql_methods; -- cgit v1.2.1