]> granicus.if.org Git - php/commitdiff
- Need to also revert operator
authorMarcus Boerger <helly@php.net>
Tue, 22 Feb 2005 21:22:23 +0000 (21:22 +0000)
committerMarcus Boerger <helly@php.net>
Tue, 22 Feb 2005 21:22:23 +0000 (21:22 +0000)
ext/pdo/pdo_dbh.c

index 34889a7cd34caecfc7d8915e5c1ab746cc2698af..43adca0a0e31d94f6b934f92ea11c1696f382a83 100755 (executable)
@@ -836,7 +836,7 @@ static PHP_METHOD(PDO, query)
        ZVAL_NULL(&stmt->lazy_object_ref);
 
        if (dbh->methods->preparer(dbh, statement, statement_len, stmt, NULL TSRMLS_CC)) {
-               if (ZEND_NUM_ARGS() > 1 || SUCCESS == pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAM_PASSTHRU, stmt, 1)) {
+               if (ZEND_NUM_ARGS() == 1 || SUCCESS == pdo_stmt_setup_fetch_mode(INTERNAL_FUNCTION_PARAM_PASSTHRU, stmt, 1)) {
                        PDO_STMT_CLEAR_ERR();
 
                        /* now execute the statement */