1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-19 21:43:15 +03:00

Restore the PRAGMA reverse_unordered_selects behavior.

FossilOrigin-Name: f49cd6c4e752e39801f9d5de0bc370d26f43837c
This commit is contained in:
drh
2013-06-04 18:27:41 +00:00
parent 907717fe07
commit d84ce35bfd
3 changed files with 9 additions and 7 deletions

View File

@@ -5250,6 +5250,8 @@ WhereInfo *sqlite3WhereBegin(
if( pWInfo->pOrderBy ){
wherePathSolver(pWInfo, pWInfo->nRowOut);
if( db->mallocFailed ) goto whereBeginError;
}else if( db->flags & SQLITE_ReverseOrder ){
pWInfo->revMask = (Bitmask)(-1);
}
if( pParse->nErr || db->mallocFailed ){
goto whereBeginError;