From 940c896e157ed91f07d7af3ba93062e72171e142 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 18 May 2004 08:45:28 +0000 Subject: [PATCH] Quoting here leads to problems with databases that really support bound parameters. We should do this conditionally based on the emulate_prepare flag. --- ext/pdo/pdo_stmt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 1d7d4bbc9d..a47d5edde3 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -265,6 +265,7 @@ static PHP_METHOD(PDOStatement, execute) } param.param_type = PDO_PARAM_STR; +#if 0 if(stmt->dbh->methods->quoter(stmt->dbh, Z_STRVAL_PP(tmp), Z_STRLEN_PP(tmp), "edstr, "edstrlen TSRMLS_DC)) { int refcount = (*tmp)->refcount; @@ -272,6 +273,7 @@ static PHP_METHOD(PDOStatement, execute) ZVAL_STRINGL(*tmp, quotedstr, quotedstrlen, 0); (*tmp)->refcount = refcount; } +#endif param.parameter = *tmp; if (!really_register_bound_param(¶m, stmt, 1 TSRMLS_CC)) { -- 2.40.0