aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2021-10-11 15:54:05 +0000
committerdrh <>2021-10-11 15:54:05 +0000
commit54e3f94eee2aff724fcb8d4268ff2d4df7ae938d (patch)
treeb0d108ac7fe5c6de9b2c3cd52b570a406fa155b7 /src
parent9966621da1833d9d0fb41800c82b963630a29f83 (diff)
downloadsqlite-54e3f94eee2aff724fcb8d4268ff2d4df7ae938d.tar.gz
sqlite-54e3f94eee2aff724fcb8d4268ff2d4df7ae938d.zip
Fail a schema parse if a virtual table or view has a positive integer
rootpage. FossilOrigin-Name: 02656760406add06303afc94eaf9f2be021cbdbc7ac1ca79b139a7d2de9c0dc5
Diffstat (limited to 'src')
-rw-r--r--src/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c
index 1bf082712..55d336c38 100644
--- a/src/build.c
+++ b/src/build.c
@@ -2586,7 +2586,7 @@ void sqlite3EndTable(
** table itself. So mark it read-only.
*/
if( db->init.busy ){
- if( pSelect ){
+ if( pSelect || (!IsOrdinaryTable(p) && db->init.newTnum) ){
sqlite3ErrorMsg(pParse, "");
return;
}