-C Beta\s2\s(CVS\s422)
-D 2002-03-06T22:04:21
+C Fix\sa\sbug\sin\sthe\ssorting\sof\scompound\sselects.\s(CVS\s423)
+D 2002-03-07T02:02:51
F Makefile.in 50f1b3351df109b5774771350d8c1b8d3640130d
F Makefile.template 89e373b2dad0321df00400fa968dc14b61a03296
F README a4c0ba11354ef6ba0776b400d057c59da47a4cc0
F src/parse.y f7483ccff7b8f16d3655df59775d85b62b06897e
F src/printf.c 300a90554345751f26e1fc0c0333b90a66110a1d
F src/random.c 19e8e00fe0df32a742f115773f57651be327cabe
-F src/select.c 49c78aa0c96dda036846937b516658536db98b56
+F src/select.c 1288243cacdee338ee49e3e30fcda1a701a0c8c8
F src/shell.c b3454229599246b944cdb5b95753af3fca5d8bb0
F src/shell.tcl 27ecbd63dd88396ad16d81ab44f73e6c0ea9d20e
F src/sqlite.h.in a9b5772604265f98f3120573ef29e37b9d917216
F www/sqlite.tcl 8b5884354cb615049aed83039f8dfe1552a44279
F www/tclsqlite.tcl 829b393d1ab187fd7a5e978631b3429318885c49
F www/vdbe.tcl 2013852c27a02a091d39a766bc87cff329f21218
-P 161c0c5f5db66815e4345c9b5f7a600c03a67475
-R 3e03ae5c01680d33425f0072c8b68c25
+P 6c3fb5470ea94bfc99833ff1c78981262c9165eb
+R a428e07eeafc44ccfa53fd5fc16636e0
U drh
-Z 96d5d728f7e04cc6a1fbcba0b35bb16e
+Z dfcc0ce535d59118c84662d1f3390a20
-6c3fb5470ea94bfc99833ff1c78981262c9165eb
\ No newline at end of file
+0a51323561b7235d46621d9fa25c7111b81c528f
\ No newline at end of file
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
-** $Id: select.c,v 1.74 2002/03/03 18:59:41 drh Exp $
+** $Id: select.c,v 1.75 2002/03/07 02:02:51 drh Exp $
*/
#include "sqliteInt.h"
/* ORDER BY is ignored if we are not sending the result to a callback.
*/
if( eDest!=SRT_Callback ){
- sqliteExprListDelete(p->pOrderBy);
- pOrderBy = p->pOrderBy = 0;
+ pOrderBy = 0;
}
/* At this point, we should have allocated all the cursors that we
p, i, &isAgg);
pTabList = p->pSrc;
pWhere = p->pWhere;
- pOrderBy = p->pOrderBy;
+ if( eDest==SRT_Callback ){
+ pOrderBy = p->pOrderBy;
+ }
pGroupBy = p->pGroupBy;
pHaving = p->pHaving;
isDistinct = p->isDistinct;