mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-11 01:42:22 +03:00
Fix the OFFSET clause so that it works correctly on queries that lack
a FROM clause. Ticket [07d6a0453d4ed8]. FossilOrigin-Name: 179ef81648b0ad557df78b7712f216b876b6fb65
This commit is contained in:
@@ -47,6 +47,7 @@ int sqlite3WhereIsOrdered(WhereInfo *pWInfo){
|
||||
** immediately with the next row of a WHERE clause.
|
||||
*/
|
||||
int sqlite3WhereContinueLabel(WhereInfo *pWInfo){
|
||||
assert( pWInfo->iContinue!=0 );
|
||||
return pWInfo->iContinue;
|
||||
}
|
||||
|
||||
@@ -5453,7 +5454,7 @@ WhereInfo *sqlite3WhereBegin(
|
||||
pWInfo->pTabList = pTabList;
|
||||
pWInfo->pOrderBy = pOrderBy;
|
||||
pWInfo->pResultSet = pResultSet;
|
||||
pWInfo->iBreak = sqlite3VdbeMakeLabel(v);
|
||||
pWInfo->iBreak = pWInfo->iContinue = sqlite3VdbeMakeLabel(v);
|
||||
pWInfo->wctrlFlags = wctrlFlags;
|
||||
pWInfo->savedNQueryLoop = pParse->nQueryLoop;
|
||||
pMaskSet = &pWInfo->sMaskSet;
|
||||
|
||||
Reference in New Issue
Block a user