mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Return the correct declared column type, origin column name, origin database
name, etc. from aggregate queries. Ticket #1726 and #1755. (CVS 3169) FossilOrigin-Name: e64809f0ae98ce9d152cf030cae72bf3df3e2403
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.310 2006/03/26 01:21:23 drh Exp $
|
||||
** $Id: select.c,v 1.311 2006/04/07 13:50:37 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -805,6 +805,7 @@ static const char *columnType(
|
||||
assert( pExpr->op!=TK_AS );
|
||||
|
||||
switch( pExpr->op ){
|
||||
case TK_AGG_COLUMN:
|
||||
case TK_COLUMN: {
|
||||
/* The expression is a column. Locate the table the column is being
|
||||
** extracted from in NameContext.pSrcList. This table may be real
|
||||
|
||||
Reference in New Issue
Block a user