mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-14 00:22:38 +03:00
Fix a typo in the previous check-in. Also simplify a line in select.c. (CVS 4631)
FossilOrigin-Name: 86f45d7bb6f7d9e5c177be76d8a7ace754d52bcd
This commit is contained in:
@@ -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.370 2007/12/13 21:54:11 drh Exp $
|
||||
** $Id: select.c,v 1.371 2007/12/14 16:11:09 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -1464,8 +1464,7 @@ static int matchOrderByTermToExprList(
|
||||
if( pE->op==TK_ID || (pE->op==TK_STRING && pE->token.z[0]!='\'') ){
|
||||
sqlite3 *db = pParse->db;
|
||||
char *zCol = sqlite3NameFromToken(db, &pE->token);
|
||||
if( db->mallocFailed ){
|
||||
sqlite3_free(zCol);
|
||||
if( zCol==0 ){
|
||||
return -1;
|
||||
}
|
||||
for(i=0; i<pEList->nExpr; i++){
|
||||
|
||||
Reference in New Issue
Block a user