mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-16 23:02:26 +03:00
Fix a bug in where.c introduced by check-in (5373). (CVS 5375)
FossilOrigin-Name: 1ed98f9e617fb422efc37c4a3a5c5f0702467868
This commit is contained in:
@@ -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.312 2008/07/08 18:05:26 drh Exp $
|
||||
** $Id: where.c,v 1.313 2008/07/08 19:45:02 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -2157,8 +2157,7 @@ WhereInfo *sqlite3WhereBegin(
|
||||
ppIdxInfo);
|
||||
flags = WHERE_VIRTUALTABLE;
|
||||
pIndex = *ppIdxInfo;
|
||||
assert( pIndex!=0 );
|
||||
if( pIndex->orderByConsumed ){
|
||||
if( pIndex && pIndex->orderByConsumed ){
|
||||
flags = WHERE_VIRTUALTABLE | WHERE_ORDERBY;
|
||||
}
|
||||
pIdx = 0;
|
||||
|
||||
Reference in New Issue
Block a user