aboutsummaryrefslogtreecommitdiff
path: root/src/select.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-04-11 14:16:21 +0000
committerdrh <drh@noemail.net>2006-04-11 14:16:21 +0000
commit18e87cff0a1c3f92552081b28376bf6cc59aae8c (patch)
tree0ed6b431efafc01104301a8e5f69d95393e9c313 /src/select.c
parenta06ab2ca23b2740c06b07208abc39e3f40719d16 (diff)
downloadsqlite-18e87cff0a1c3f92552081b28376bf6cc59aae8c.tar.gz
sqlite-18e87cff0a1c3f92552081b28376bf6cc59aae8c.zip
Allow constant terms in the ORDER BY or GROUP BY clauses. Ticket #1768. (CVS 3173)
FossilOrigin-Name: d83e0230c0c4909cb035e266beffc0967526d9c1
Diffstat (limited to 'src/select.c')
-rw-r--r--src/select.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/select.c b/src/select.c
index 53aa72755..f472bcd25 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.311 2006/04/07 13:50:37 drh Exp $
+** $Id: select.c,v 1.312 2006/04/11 14:16:21 drh Exp $
*/
#include "sqliteInt.h"
@@ -2486,11 +2486,6 @@ static int processOrderGroupBy(
if( sqlite3ExprResolveNames(pNC, pE) ){
return 1;
}
- if( sqlite3ExprIsConstant(pE) ){
- sqlite3ErrorMsg(pParse,
- "%s BY terms must not be non-integer constants", zType);
- return 1;
- }
}
return 0;
}