diff options
author | drh <drh@noemail.net> | 2003-07-20 01:16:46 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2003-07-20 01:16:46 +0000 |
commit | 7b58daeafec267b11b11bb327e15188767e2bdfd (patch) | |
tree | 5d4a358efebb84be89442cc229ec75c628eadd76 /src/expr.c | |
parent | e5f50722b49705ce9eb00d46e758e5936c19c67f (diff) | |
download | sqlite-7b58daeafec267b11b11bb327e15188767e2bdfd.tar.gz sqlite-7b58daeafec267b11b11bb327e15188767e2bdfd.zip |
Fix the LIMIT clause so that it applies to the entire query in a compound
query. Prior to this change LIMITs on compound queries did not work at
all. Ticket #393. (CVS 1058)
FossilOrigin-Name: 543479e3aed77976a0c689cf40811bf88353f706
Diffstat (limited to 'src/expr.c')
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index d6b9b1279..7f3f96f60 100644 --- a/src/expr.c +++ b/src/expr.c @@ -12,7 +12,7 @@ ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** -** $Id: expr.c,v 1.96 2003/05/31 16:21:12 drh Exp $ +** $Id: expr.c,v 1.97 2003/07/20 01:16:47 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -235,6 +235,8 @@ Select *sqliteSelectDup(Select *p){ pNew->nLimit = p->nLimit; pNew->nOffset = p->nOffset; pNew->zSelect = 0; + pNew->iLimit = -1; + pNew->iOffset = -1; return pNew; } |