1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Create the sqlite3IsToplevel(Parse*) interface to check to see if a top-level

VDBE is being coded (versus a trigger) and use that interface.

FossilOrigin-Name: 59662cd2b65255a30e1a420331c07c51b644621a
This commit is contained in:
drh
2015-09-29 13:25:15 +00:00
parent 94f26a1e22
commit c149f18f4d
6 changed files with 15 additions and 13 deletions

View File

@@ -518,7 +518,7 @@ void sqlite3DeleteFrom(
sqlite3VdbeChangeP5(v, OE_Abort);
assert( eOnePass==ONEPASS_OFF || eOnePass==ONEPASS_SINGLE );
sqlite3MayAbort(pParse);
if( eOnePass==ONEPASS_SINGLE && pParse==sqlite3ParseToplevel(pParse) ){
if( eOnePass==ONEPASS_SINGLE && sqlite3IsToplevel(pParse) ){
pParse->isMultiWrite = 0;
}
}else