mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Make sure the column name flags are restored correctly after an error
inside of sqlite3ResultSetOfSelect(). FossilOrigin-Name: b1601db7adba2dccd4f90fbbe5099c801a2b0d97af087fbe82ed98d05496b38c
This commit is contained in:
@@ -2089,9 +2089,9 @@ Table *sqlite3ResultSetOfSelect(Parse *pParse, Select *pSelect){
|
||||
db->flags &= ~(u64)SQLITE_FullColNames;
|
||||
db->flags |= SQLITE_ShortColNames;
|
||||
sqlite3SelectPrep(pParse, pSelect, 0);
|
||||
db->flags = savedFlags;
|
||||
if( pParse->nErr ) return 0;
|
||||
while( pSelect->pPrior ) pSelect = pSelect->pPrior;
|
||||
db->flags = savedFlags;
|
||||
pTab = sqlite3DbMallocZero(db, sizeof(Table) );
|
||||
if( pTab==0 ){
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user