If the string formatter in sqlite3NestedParse() fails due to an over-length

string, make sure this error is recorded by the parser so that it knows to
fail.

FossilOrigin-Name: 85e53ff13300132250221de769a2aa7d92d81bb48d60f6e99000bc69a5b1e6fb
This commit is contained in:
drh
2019-03-28 04:03:17 +00:00
parent 40f827a65e
commit a2b6806b3e
3 changed files with 8 additions and 7 deletions
+1
View File
@@ -264,6 +264,7 @@ void sqlite3NestedParse(Parse *pParse, const char *zFormat, ...){
** exceeds SQLITE_LIMIT_LENGTH. In the latter case, we need to set
** an error */
if( !db->mallocFailed ) pParse->rc = SQLITE_TOOBIG;
pParse->nErr++;
return;
}
pParse->nested++;