aports/main/sqlite/performance-regression.patch

17 lines
603 B
Diff

Patch-Source: https://sqlite.org/src/info/aa6bd6dff751223e
https://sqlite.org/forum/forumpost/3a180ba0d4
diff --git a/sqlite3.c b/sqlite3.c
index 947a154..bf9ce16 100644
--- a/sqlite3.c
+++ b/sqlite3.c
@@ -143420,9 +143420,6 @@ static int pushDownWhereTerms(
if( pSel->pWin ) return 0; /* restriction (6b) */
#endif
}
- if( compoundHasDifferentAffinities(pSubq) ){
- return 0; /* restriction (9) */
- }
if( notUnionAll ){
/* If any of the compound arms are connected using UNION, INTERSECT,
** or EXCEPT, then we must ensure that none of the columns use a