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

Propagate the COLLATE operator upward through function calls.

Initial fix for ticket [ca0d20b6cdddec5e8].

FossilOrigin-Name: c053448a55f9d030e8ffe88cf4fc14ada7f6ec19
This commit is contained in:
drh
2015-02-09 16:09:34 +00:00
parent 885a5b030e
commit 2308ed3854
8 changed files with 98 additions and 42 deletions

View File

@@ -3338,8 +3338,8 @@ static int flattenSubquery(
if( isAgg ) return 0; /* Restriction (1) */
if( pSrc->nSrc>1 ) return 0; /* Restriction (2a) */
if( (p->pWhere && ExprHasProperty(p->pWhere,EP_Subquery))
|| sqlite3AnyExprListHasProperty(p->pEList,EP_Subquery)
|| sqlite3AnyExprListHasProperty(p->pOrderBy,EP_Subquery)
|| (sqlite3ExprListFlags(p->pEList) & EP_Subquery)!=0
|| (sqlite3ExprListFlags(p->pOrderBy) & EP_Subquery)!=0
){
return 0; /* Restriction (2b) */
}