mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-27 08:52:26 +03:00
Infrastructure changes to handle name resolution differently. This is needed
to fix various long-standing problems with column names in joins. It will also make the implementation of correlated subqueries easier. (CVS 2228) FossilOrigin-Name: 4a7534396a72ccb300303df28798bb2c50293782
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains C code routines that are called by the parser
|
||||
** to handle INSERT statements in SQLite.
|
||||
**
|
||||
** $Id: insert.c,v 1.130 2005/01/14 01:22:01 drh Exp $
|
||||
** $Id: insert.c,v 1.131 2005/01/17 22:08:19 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -380,7 +380,7 @@ void sqlite3Insert(
|
||||
nColumn = pList->nExpr;
|
||||
dummy.nSrc = 0;
|
||||
for(i=0; i<nColumn; i++){
|
||||
if( sqlite3ExprResolveAndCheck(pParse,&dummy,0,pList->a[i].pExpr,0,0) ){
|
||||
if( sqlite3ExprResolveNames(pParse,&dummy,0,pList->a[i].pExpr,0,0,1) ){
|
||||
goto insert_cleanup;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user