aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2004-12-16 21:09:16 +0000
committerdrh <drh@noemail.net>2004-12-16 21:09:16 +0000
commitbe5fd4906ddcc0186f705f720878632c179fab21 (patch)
treeb435fe936ef902a4d24a57ea63eb854ce040b0d1 /src/select.c
parent23bf66d6af7abc016f1ed1efebd31020af3f5994 (diff)
downloadsqlite-be5fd4906ddcc0186f705f720878632c179fab21.tar.gz
sqlite-be5fd4906ddcc0186f705f720878632c179fab21.zip
Make sure LIMITs are handled correctly on UNION operators. Ticket #1035. (CVS 2166)
FossilOrigin-Name: ece0085f86bd715c95a6c59f41b4a97de2555faf
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/select.c b/src/select.c
index d16f43d23..a2a4d5e34 100644
--- a/src/select.c
+++ b/src/select.c
@@ -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;
}