aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordanielk1977 <danielk1977@noemail.net>2005-01-24 10:25:59 +0000
committerdanielk1977 <danielk1977@noemail.net>2005-01-24 10:25:59 +0000
commita21c6b6fe0416aa43ef95e28f9ca7ebd59400708 (patch)
tree86a9df9e7c8b46dfa1e578bbb06e450d3795f521 /src/vdbeapi.c
parentd5a71b5de3803c82c8cb4454c9339a0997893442 (diff)
downloadsqlite-a21c6b6fe0416aa43ef95e28f9ca7ebd59400708.tar.gz
sqlite-a21c6b6fe0416aa43ef95e28f9ca7ebd59400708.zip
Modifications and bugfixes so that the test suite passes with the TCL statement cache turned on. (CVS 2271)
FossilOrigin-Name: d5233e0747789dea04d35a8350b408321d23a64d
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index 348925a71..ca1612875 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -163,6 +163,12 @@ int sqlite3_step(sqlite3_stmt *pStmt){
if( p->aborted ){
return SQLITE_ABORT;
}
+ if( p->pc<=0 && p->expired ){
+ if( p->rc==SQLITE_OK ){
+ p->rc = SQLITE_SCHEMA;
+ }
+ return SQLITE_ERROR;
+ }
db = p->db;
if( sqlite3SafetyOn(db) ){
p->rc = SQLITE_MISUSE;