Index: third_party/sqlite/src/src/analyze.c |
diff --git a/third_party/sqlite/src/src/analyze.c b/third_party/sqlite/src/src/analyze.c |
index 17c1de83a98bdec3bb98c917a5bbdec2927bc0fc..2444e7492329e0a33f171f5681b9b22a206f9e71 100644 |
--- a/third_party/sqlite/src/src/analyze.c |
+++ b/third_party/sqlite/src/src/analyze.c |
@@ -142,7 +142,7 @@ static void analyzeOneTable( |
/* Do not gather statistics on views or virtual tables */ |
return; |
} |
- if( memcmp(pTab->zName, "sqlite_", 7)==0 ){ |
+ if( sqlite3_strnicmp(pTab->zName, "sqlite_", 7)==0 ){ |
/* Do not gather statistics on system tables */ |
return; |
} |
@@ -548,7 +548,7 @@ static int analysisLoader(void *pData, int argc, char **argv, char **NotUsed){ |
if( pIndex==0 ) break; |
pIndex->aiRowEst[i] = v; |
if( *z==' ' ) z++; |
- if( memcmp(z, "unordered", 10)==0 ){ |
+ if( strcmp(z, "unordered")==0 ){ |
pIndex->bUnordered = 1; |
break; |
} |