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

Fix a faulty assert() in the SELECT code generator and add a test case

to prevent regression.

FossilOrigin-Name: 1421c8ffba179d6aafa2643012f80a2738779117
This commit is contained in:
drh
2015-05-04 16:09:34 +00:00
parent 33aa4dbe44
commit 9af8646dce
4 changed files with 19 additions and 9 deletions

View File

@@ -2603,7 +2603,7 @@ static int generateOutputSubroutine(
*/
case SRT_Set: {
int r1;
assert( pIn->nSdst==1 );
assert( pIn->nSdst==1 || pParse->nErr>0 );
pDest->affSdst =
sqlite3CompareAffinity(p->pEList->a[0].pExpr, pDest->affSdst);
r1 = sqlite3GetTempReg(pParse);