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

Minor bug fixes and performance enhancement.

FossilOrigin-Name: b2aae559581d05e4e8caaddfbd137cb275d582e82d58872c6f42e462dc859b1c
This commit is contained in:
drh
2017-05-01 16:37:20 +00:00
parent e08e8d6b61
commit 33543c237b
4 changed files with 14 additions and 15 deletions

View File

@@ -4892,7 +4892,9 @@ static struct SrcList_item *isSelfJoinView(
for(pItem = pTabList->a; pItem<pThis; pItem++){
if( pItem->pSelect==0 ) continue;
if( pItem->fg.viaCoroutine ) continue;
if( sqlite3StrICmp(pItem->zName, pThis->zName)==0 ) return pItem;
if( pItem->zName==0 ) continue;
if( sqlite3_stricmp(pItem->zDatabase, pThis->zDatabase)!=0 ) continue;
if( sqlite3_stricmp(pItem->zName, pThis->zName)==0 ) return pItem;
}
return 0;
}