diff options
author | drh <> | 2022-10-01 20:27:29 +0000 |
---|---|---|
committer | drh <> | 2022-10-01 20:27:29 +0000 |
commit | 7d34b8d6281c942382765f94e860a1e4f7d3a043 (patch) | |
tree | e9594a659b6a72aefdb4b6a4ce5be7f2a63d46ca /src | |
parent | 7424aeff41362573938ff595e4eec5cdb126d29b (diff) | |
download | sqlite-7d34b8d6281c942382765f94e860a1e4f7d3a043.tar.gz sqlite-7d34b8d6281c942382765f94e860a1e4f7d3a043.zip |
Performance optimization in sqlite3_prepare() (discovered while working
on the stmt-cache branch).
FossilOrigin-Name: cd494240cc6184bb028d1f1049086f57c0a71a43d7ed1405fd4205240e1b9e61
Diffstat (limited to 'src')
-rw-r--r-- | src/prepare.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/prepare.c b/src/prepare.c index cd90bc4ba..1e7a1222b 100644 --- a/src/prepare.c +++ b/src/prepare.c @@ -746,7 +746,9 @@ static int sqlite3Prepare( } } - sqlite3VtabUnlockList(db); +#ifndef SQLITE_OMIT_VIRTUALTABLE + if( db->pDisconnect ) sqlite3VtabUnlockList(db); +#endif if( nBytes>=0 && (nBytes==0 || zSql[nBytes-1]!=0) ){ char *zSqlCopy; |