aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-12-30 16:51:20 +0000
committerdrh <drh@noemail.net>2015-12-30 16:51:20 +0000
commitf19aa5fa6f1cf6bcb11759a663bc44b10de87c49 (patch)
tree1a8e27b427566cc073855aa834b6da30ff5ee450 /src/insert.c
parent0472af91ec58d0d61101fb9f93970b774e25313a (diff)
downloadsqlite-f19aa5fa6f1cf6bcb11759a663bc44b10de87c49.tar.gz
sqlite-f19aa5fa6f1cf6bcb11759a663bc44b10de87c49.zip
Changes to the way that the default BINARY collating sequence is recorded
result in a slightly smaller and slightly faster executable. More work could be done to make this cleaner. FossilOrigin-Name: 2081d75767dc590b4c8457e5f8e5f18ba5f8eaa7
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/insert.c b/src/insert.c
index 858bcf27a..3e4aac8f4 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -2052,9 +2052,10 @@ static int xferOptimization(
** a VACUUM command. In that case keys may not be written in strictly
** sorted order. */
for(i=0; i<pSrcIdx->nColumn; i++){
- char *zColl = pSrcIdx->azColl[i];
- assert( zColl!=0 );
- if( sqlite3_stricmp("BINARY", zColl) ) break;
+ const char *zColl = pSrcIdx->azColl[i];
+ assert( sqlite3_stricmp(sqlite3StrBINARY, zColl)!=0
+ || sqlite3StrBINARY==zColl );
+ if( sqlite3_stricmp(sqlite3StrBINARY, zColl) ) break;
}
if( i==pSrcIdx->nColumn ){
idxInsFlags = OPFLAG_USESEEKRESULT;