diff options
author | drh <drh@noemail.net> | 2013-11-02 22:09:48 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-11-02 22:09:48 +0000 |
commit | 63f0eedf10f1b2fa87a8b6c20dd7d3cf96aa3208 (patch) | |
tree | e3cf958053f42c882969b59e85a8c73fd00eb9c3 /src/vdbeblob.c | |
parent | ce95d11921f758836b7ab3aed55d0b9d2a7fb9a9 (diff) | |
download | sqlite-63f0eedf10f1b2fa87a8b6c20dd7d3cf96aa3208.tar.gz sqlite-63f0eedf10f1b2fa87a8b6c20dd7d3cf96aa3208.zip |
Many new test cases added, that mostly work. Currently 18 errors in
without_rowid3.test. Also there is a hack marked by a /*FIXME*/ comment
on at fkey.c:547 that needs fixing.
FossilOrigin-Name: 39e32187b66405e00dbd44685f6cdd269c90f5e5
Diffstat (limited to 'src/vdbeblob.c')
-rw-r--r-- | src/vdbeblob.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vdbeblob.c b/src/vdbeblob.c index 4953579c6..0c4ebf6e4 100644 --- a/src/vdbeblob.c +++ b/src/vdbeblob.c @@ -178,6 +178,10 @@ int sqlite3_blob_open( pTab = 0; sqlite3ErrorMsg(pParse, "cannot open virtual table: %s", zTable); } + if( pTab && !HasRowid(pTab) ){ + pTab = 0; + sqlite3ErrorMsg(pParse, "cannot open table without rowid: %s", zTable); + } #ifndef SQLITE_OMIT_VIEW if( pTab && pTab->pSelect ){ pTab = 0; |