]> granicus.if.org Git - php/commitdiff
Quoting here leads to problems with databases that really support bound parameters.
authorWez Furlong <wez@php.net>
Tue, 18 May 2004 08:45:28 +0000 (08:45 +0000)
committerWez Furlong <wez@php.net>
Tue, 18 May 2004 08:45:28 +0000 (08:45 +0000)
We should do this conditionally based on the emulate_prepare flag.

ext/pdo/pdo_stmt.c

index 1d7d4bbc9da1eb75f3f9327f0ddde3e1d50b2cb9..a47d5edde308c98850fca4275a36df3f2a706306 100755 (executable)
@@ -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), 
                           &quotedstr, &quotedstrlen 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(&param, stmt, 1 TSRMLS_CC)) {