mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Remove terms with operator TK_AS from the expression tree. Ticket #2356. (CVS 3991)
FossilOrigin-Name: 5627ff74be9242418434a06fe5c104d1f9128cab
This commit is contained in:
@@ -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.344 2007/05/10 10:46:57 danielk1977 Exp $
|
||||
** $Id: select.c,v 1.345 2007/05/14 11:34:47 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -822,12 +822,6 @@ static const char *columnType(
|
||||
int j;
|
||||
if( pExpr==0 || pNC->pSrcList==0 ) return 0;
|
||||
|
||||
/* The TK_AS operator can only occur in ORDER BY, GROUP BY, HAVING,
|
||||
** and LIMIT clauses. But pExpr originates in the result set of a
|
||||
** SELECT. So pExpr can never contain an AS operator.
|
||||
*/
|
||||
assert( pExpr->op!=TK_AS );
|
||||
|
||||
switch( pExpr->op ){
|
||||
case TK_AGG_COLUMN:
|
||||
case TK_COLUMN: {
|
||||
|
||||
Reference in New Issue
Block a user