1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-16 23:02:26 +03:00

Fix an OOM problem in where.c. (CVS 6060)

FossilOrigin-Name: d2105f617eeb04c8177546c45bf6c63e72757f91
This commit is contained in:
drh
2008-12-23 16:23:04 +00:00
parent 30df00983e
commit 3368a24e62
3 changed files with 9 additions and 8 deletions

View File

@@ -16,7 +16,7 @@
** so is applicable. Because this module is responsible for selecting
** indices, you might also think of this module as the "query optimizer".
**
** $Id: where.c,v 1.341 2008/12/23 13:35:23 drh Exp $
** $Id: where.c,v 1.342 2008/12/23 16:23:05 drh Exp $
*/
#include "sqliteInt.h"
@@ -3020,6 +3020,7 @@ WhereInfo *sqlite3WhereBegin(
}
}
WHERETRACE(("*** Optimizer Finished ***\n"));
if( db->mallocFailed ) goto whereBeginError;
/* If the total query only selects a single row, then the ORDER BY
** clause is irrelevant.