mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-10 01:02:56 +03:00
Improved sqlite3_error_offset() values for bare column errors on '*' and
'table.*' expressions in SELECT statements. FossilOrigin-Name: 118fe600876686273f85d0a080a21267e83c11826365f3220336b1bd39562518
This commit is contained in:
@@ -890,6 +890,15 @@ void sqlite3ExprSetHeightAndFlags(Parse *pParse, Expr *p){
|
||||
#define exprSetHeight(y)
|
||||
#endif /* SQLITE_MAX_EXPR_DEPTH>0 */
|
||||
|
||||
/*
|
||||
** Set the error offset for an Expr node, if possible.
|
||||
*/
|
||||
void sqlite3ExprSetErrorOffset(Expr *pExpr, int iOfst){
|
||||
if( pExpr==0 ) return;
|
||||
if( NEVER(ExprUseWJoin(pExpr)) ) return;
|
||||
pExpr->w.iOfst = iOfst;
|
||||
}
|
||||
|
||||
/*
|
||||
** This routine is the core allocator for Expr nodes.
|
||||
**
|
||||
|
Reference in New Issue
Block a user