1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

The RTREE extension should return SQLITE_CORRUPT_VTAB, not just SQLITE_CORRUPT

when it encounters incorrectly formatted shadow tables.

FossilOrigin-Name: 0712f057ef3dcd907984dda30f6d961a29b61c1d2b25627028c4e227ec85dbba
This commit is contained in:
drh
2017-08-17 18:17:24 +00:00
parent 967f8f9e07
commit 6362bbe68d
4 changed files with 10 additions and 10 deletions

View File

@ -3414,7 +3414,7 @@ static int getNodeSize(
if( rc!=SQLITE_OK ){
*pzErr = sqlite3_mprintf("%s", sqlite3_errmsg(db));
}else if( pRtree->iNodeSize<(512-64) ){
rc = SQLITE_CORRUPT;
rc = SQLITE_CORRUPT_VTAB;
*pzErr = sqlite3_mprintf("undersize RTree blobs in \"%q_node\"",
pRtree->zName);
}

View File

@ -230,7 +230,7 @@ do_catchsql_test rtreeA-7.110 {
} {1 {undersize RTree blobs in "t1_node"}}
do_test rtreeA-7.120 {
sqlite3_extended_errcode db
} {SQLITE_CORRUPT}
} {SQLITE_CORRUPT_VTAB}