1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Create the new TK_ASTERISK token to represent the "*" in "SELECT *". Formerly

that operator was TK_ALL, which was also used for UNION ALL.  Less confusion if
they operator symbols are distinct.

FossilOrigin-Name: 201ac6d449431dadc6b29faecd68b559bd64bc9f
This commit is contained in:
drh
2015-11-19 16:33:31 +00:00
parent 05bdfa4a6f
commit 1a1d3cd2f3
6 changed files with 26 additions and 23 deletions

View File

@@ -1873,7 +1873,7 @@ static int xferOptimization(
return 0; /* The result set must have exactly one column */
}
assert( pEList->a[0].pExpr );
if( pEList->a[0].pExpr->op!=TK_ALL ){
if( pEList->a[0].pExpr->op!=TK_ASTERISK ){
return 0; /* The result set must be the special operator "*" */
}