1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Make sure LIMITs are handled correctly on UNION operators. Ticket #1035. (CVS 2166)

FossilOrigin-Name: ece0085f86bd715c95a6c59f41b4a97de2555faf
This commit is contained in:
drh
2004-12-16 21:09:16 +00:00
parent 23bf66d6af
commit be5fd4906d
4 changed files with 44 additions and 10 deletions

View File

@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
** $Id: select.c,v 1.217 2004/11/23 01:47:30 drh Exp $
** $Id: select.c,v 1.218 2004/12/16 21:09:17 drh Exp $
*/
#include "sqliteInt.h"
@@ -1504,6 +1504,8 @@ static int multiSelect(
p->pOrderBy = pOrderBy;
p->nLimit = nLimit;
p->nOffset = nOffset;
p->iLimit = -1;
p->iOffset = -1;
if( rc ){
goto multi_select_end;
}