]> granicus.if.org Git - php/commitdiff
Implemented FR #53466 (SQLite3Result::columnType() should return false after all...
authorScott MacVicar <scottmac@php.net>
Thu, 6 Jan 2011 00:08:59 +0000 (00:08 +0000)
committerScott MacVicar <scottmac@php.net>
Thu, 6 Jan 2011 00:08:59 +0000 (00:08 +0000)
ext/sqlite3/sqlite3.c

index d3d92aaa8bf6b99e2aa6d3f5370009af9ecc372e..cc331122423a368e45fa4583182eef868c577751 100644 (file)
@@ -1582,6 +1582,10 @@ PHP_METHOD(sqlite3result, columnType)
                return;
        }
 
+       if (result_obj->complete) {
+               RETURN_FALSE;
+       }
+
        RETURN_LONG(sqlite3_column_type(result_obj->stmt_obj->stmt, column));
 }
 /* }}} */
@@ -1631,6 +1635,7 @@ PHP_METHOD(sqlite3result, fetchArray)
                        break;
 
                case SQLITE_DONE:
+                       result_obj->complete = 1;
                        RETURN_FALSE;
                        break;