summaryrefslogtreecommitdiff
path: root/ext/sqlite3/sqlite3.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite3/sqlite3.c')
-rw-r--r--ext/sqlite3/sqlite3.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/sqlite3/sqlite3.c b/ext/sqlite3/sqlite3.c
index d3d92aaa8b..cc33112242 100644
--- a/ext/sqlite3/sqlite3.c
+++ b/ext/sqlite3/sqlite3.c
@@ -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;