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

Respect collation sequences in views. Ticket #1088. (CVS 2291)

FossilOrigin-Name: 9843c0dd795ceda3c260986f95b101a0cbc7cf64
This commit is contained in:
danielk1977
2005-01-30 11:11:44 +00:00
parent 6c18b6e0f4
commit 142bdf4051
5 changed files with 49 additions and 14 deletions

View File

@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
** $Id: select.c,v 1.235 2005/01/29 08:32:45 danielk1977 Exp $
** $Id: select.c,v 1.236 2005/01/30 11:11:44 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -857,6 +857,9 @@ Table *sqlite3ResultSetOfSelect(Parse *pParse, char *zTabName, Select *pSelect){
if( prepSelectStmt(pParse, pSelect) ){
return 0;
}
if( sqlite3SelectResolve(pParse, pSelect, 0) ){
return 0;
}
pTab = sqliteMalloc( sizeof(Table) );
if( pTab==0 ){
return 0;
@@ -989,7 +992,6 @@ static int prepSelectStmt(Parse *pParse, Select *p){
pFrom->zAlias =
sqlite3MPrintf("sqlite_subquery_%p_", (void*)pFrom->pSelect);
}
sqlite3SelectResolve(pParse, pFrom->pSelect, 0);
pFrom->pTab = pTab =
sqlite3ResultSetOfSelect(pParse, pFrom->zAlias, pFrom->pSelect);
if( pTab==0 ){