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

Remove incorrect ALWAYS macro associated with empty IN() sets. Ticket #3602. (CVS 6202)

FossilOrigin-Name: f3c09a0cb8bfc1a112c31b556d8921d5c75c5eef
This commit is contained in:
danielk1977
2009-01-24 09:56:15 +00:00
parent e1fd508a28
commit 25f42fe7a1
4 changed files with 57 additions and 13 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.364 2009/01/14 00:55:10 drh Exp $
** $Id: where.c,v 1.365 2009/01/24 09:56:15 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -1924,7 +1924,7 @@ static void bestIndex(
wsFlags |= WHERE_COLUMN_IN;
if( pExpr->pSelect!=0 ){
inMultiplier *= 25;
}else if( ALWAYS(pExpr->pList) ){
}else if( pExpr->pList ){
inMultiplier *= pExpr->pList->nExpr + 1;
}
}