aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <>2021-08-05 15:27:19 +0000
committerdrh <>2021-08-05 15:27:19 +0000
commit65b400931ddbaaa2059094a014ecf46c0840857c (patch)
tree26c831dfb7bd1bfb567aad2bd7afd20b91b2268a /src/insert.c
parent324f91a591ba4578917ab0436a966ff33b163a2a (diff)
downloadsqlite-65b400931ddbaaa2059094a014ecf46c0840857c.tar.gz
sqlite-65b400931ddbaaa2059094a014ecf46c0840857c.zip
Store the collating sequence name for each column of a table as an
extension to the column name, for an additional savings in the heap space needed to hold the schema. FossilOrigin-Name: 832ac4c1ee384be0de72a4bdd55ed87e0f8294e7df5eefcf6b4942db3d85a69e
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index 06952586b..0692198b1 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -2843,7 +2843,8 @@ static int xferOptimization(
if( pDestCol->affinity!=pSrcCol->affinity ){
return 0; /* Affinity must be the same on all columns */
}
- if( sqlite3_stricmp(pDestCol->zCnColl, pSrcCol->zCnColl)!=0 ){
+ if( sqlite3_stricmp(sqlite3ColumnColl(pDestCol),
+ sqlite3ColumnColl(pSrcCol))!=0 ){
return 0; /* Collating sequence must be the same on all columns */
}
if( pDestCol->notNull && !pSrcCol->notNull ){