diff options
author | drh <drh@noemail.net> | 2015-08-26 14:01:41 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2015-08-26 14:01:41 +0000 |
commit | 5579d59fb3ccb9e9db9913a5bd50871d8e893d95 (patch) | |
tree | bd2507abb65a3e31578751108f0eef1baafefae2 /src/resolve.c | |
parent | 0576bc59a730c57f14f037dc90a28d0a7ec2d51f (diff) | |
download | sqlite-5579d59fb3ccb9e9db9913a5bd50871d8e893d95.tar.gz sqlite-5579d59fb3ccb9e9db9913a5bd50871d8e893d95.zip |
Evaluate expressions only once when the same expression is used in both the
result set and in the ORDER BY clause.
FossilOrigin-Name: c2f3bbad778504681b39ab9399a1eb3c1a35ab3f
Diffstat (limited to 'src/resolve.c')
-rw-r--r-- | src/resolve.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve.c b/src/resolve.c index 4ef8fe051..04fa8429a 100644 --- a/src/resolve.c +++ b/src/resolve.c @@ -407,9 +407,9 @@ static int lookupName( ** resolved by the time the WHERE clause is resolved. ** ** The ability to use an output result-set column in the WHERE, GROUP BY, - ** or HAVING clauses, or as part of a larger expression in the ORDRE BY + ** or HAVING clauses, or as part of a larger expression in the ORDER BY ** clause is not standard SQL. This is a (goofy) SQLite extension, that - ** is supported for backwards compatibility only. TO DO: Issue a warning + ** is supported for backwards compatibility only. Hence, we issue a warning ** on sqlite3_log() whenever the capability is used. */ if( (pEList = pNC->pEList)!=0 |