aboutsummaryrefslogtreecommitdiff
path: root/src/fkey.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/fkey.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/fkey.c')
-rw-r--r--src/fkey.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fkey.c b/src/fkey.c
index b55e2a981..2abd06c69 100644
--- a/src/fkey.c
+++ b/src/fkey.c
@@ -249,7 +249,7 @@ int sqlite3FkLocateIndex(
int i, j;
for(i=0; i<nCol; i++){
i16 iCol = pIdx->aiColumn[i]; /* Index of column in parent tbl */
- char *zDfltColl; /* Def. collation for column */
+ const char *zDfltColl; /* Def. collation for column */
char *zIdxCol; /* Name of indexed column */
if( iCol<0 ) break; /* No foreign keys against expression indexes */
@@ -258,9 +258,7 @@ int sqlite3FkLocateIndex(
** the default collation sequence for the column, this index is
** unusable. Bail out early in this case. */
zDfltColl = pParent->aCol[iCol].zColl;
- if( !zDfltColl ){
- zDfltColl = "BINARY";
- }
+ if( !zDfltColl ) zDfltColl = sqlite3StrBINARY;
if( sqlite3StrICmp(pIdx->azColl[i], zDfltColl) ) break;
zIdxCol = pParent->aCol[iCol].zName;