Skip to content

Commit 5f131e3

Browse files
committed
Update to SQLite 3.35.5
1 parent ab5df84 commit 5f131e3

File tree

6 files changed

+52
-26
lines changed

6 files changed

+52
-26
lines changed

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dnl Copyright (C) 2019-2021 Ulrich Telle <[email protected]>
44
dnl
55
dnl This file is covered by the same licence as the entire SQLite3 Multiple Ciphers package.
66

7-
AC_INIT([sqlite3mc], [1.2.4], [[email protected]])
7+
AC_INIT([sqlite3mc], [1.2.5], [[email protected]])
88

99
dnl This is the version tested with, might work with earlier ones.
1010
AC_PREREQ([2.69])

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The code was mainly developed under Windows, but was tested under Linux as well.
1212

1313
## Version history
1414

15+
* 1.2.5 - *April 2021*
16+
- Based on SQLite version 3.35.5
1517
* 1.2.4 - *April 2021*
1618
- Based on SQLite version 3.35.4
1719
* 1.2.3 - *March 2021*

src/sqlite3.c

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
** This file is an amalgamation of many separate C source files from SQLite
3-
** version 3.35.4. By combining all the individual C code files into this
3+
** version 3.35.5. By combining all the individual C code files into this
44
** single large file, the entire code can be compiled as a single translation
55
** unit. This allows many compilers to do optimizations that would not be
66
** possible if the files were compiled separately. Performance improvements
@@ -1186,9 +1186,9 @@ extern "C" {
11861186
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
11871187
** [sqlite_version()] and [sqlite_source_id()].
11881188
*/
1189-
#define SQLITE_VERSION "3.35.4"
1190-
#define SQLITE_VERSION_NUMBER 3035004
1191-
#define SQLITE_SOURCE_ID "2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e"
1189+
#define SQLITE_VERSION "3.35.5"
1190+
#define SQLITE_VERSION_NUMBER 3035005
1191+
#define SQLITE_SOURCE_ID "2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886"
11921192

11931193
/*
11941194
** CAPI3REF: Run-Time Library Version Numbers
@@ -108701,33 +108701,44 @@ SQLITE_PRIVATE void sqlite3AlterDropColumn(Parse *pParse, SrcList *pSrc, Token *
108701108701
sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenWrite);
108702108702
addr = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
108703108703
reg = ++pParse->nMem;
108704-
pParse->nMem += pTab->nCol;
108705108704
if( HasRowid(pTab) ){
108706108705
sqlite3VdbeAddOp2(v, OP_Rowid, iCur, reg);
108706+
pParse->nMem += pTab->nCol;
108707108707
}else{
108708108708
pPk = sqlite3PrimaryKeyIndex(pTab);
108709+
pParse->nMem += pPk->nColumn;
108710+
for(i=0; i<pPk->nKeyCol; i++){
108711+
sqlite3VdbeAddOp3(v, OP_Column, iCur, i, reg+i+1);
108712+
}
108713+
nField = pPk->nKeyCol;
108709108714
}
108715+
regRec = ++pParse->nMem;
108710108716
for(i=0; i<pTab->nCol; i++){
108711108717
if( i!=iCol && (pTab->aCol[i].colFlags & COLFLAG_VIRTUAL)==0 ){
108712108718
int regOut;
108713108719
if( pPk ){
108714108720
int iPos = sqlite3TableColumnToIndex(pPk, i);
108715108721
int iColPos = sqlite3TableColumnToIndex(pPk, iCol);
108722+
if( iPos<pPk->nKeyCol ) continue;
108716108723
regOut = reg+1+iPos-(iPos>iColPos);
108717108724
}else{
108718108725
regOut = reg+1+nField;
108719108726
}
108720-
sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, i, regOut);
108727+
if( i==pTab->iPKey ){
108728+
sqlite3VdbeAddOp2(v, OP_Null, 0, regOut);
108729+
}else{
108730+
sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, i, regOut);
108731+
}
108721108732
nField++;
108722108733
}
108723108734
}
108724-
regRec = reg + pTab->nCol;
108725108735
sqlite3VdbeAddOp3(v, OP_MakeRecord, reg+1, nField, regRec);
108726108736
if( pPk ){
108727108737
sqlite3VdbeAddOp4Int(v, OP_IdxInsert, iCur, regRec, reg+1, pPk->nKeyCol);
108728108738
}else{
108729108739
sqlite3VdbeAddOp3(v, OP_Insert, iCur, regRec, reg);
108730108740
}
108741+
sqlite3VdbeChangeP5(v, OPFLAG_SAVEPOSITION);
108731108742

108732108743
sqlite3VdbeAddOp2(v, OP_Next, iCur, addr+1); VdbeCoverage(v);
108733108744
sqlite3VdbeJumpHere(v, addr);
@@ -146904,6 +146915,7 @@ static void whereCombineDisjuncts(
146904146915
int op; /* Operator for the combined expression */
146905146916
int idxNew; /* Index in pWC of the next virtual term */
146906146917

146918+
if( (pOne->wtFlags | pTwo->wtFlags) & TERM_VNULL ) return;
146907146919
if( (pOne->eOperator & (WO_EQ|WO_LT|WO_LE|WO_GT|WO_GE))==0 ) return;
146908146920
if( (pTwo->eOperator & (WO_EQ|WO_LT|WO_LE|WO_GT|WO_GE))==0 ) return;
146909146921
if( (eOp & (WO_EQ|WO_LT|WO_LE))!=eOp
@@ -229294,7 +229306,7 @@ static void fts5SourceIdFunc(
229294229306
){
229295229307
assert( nArg==0 );
229296229308
UNUSED_PARAM2(nArg, apUnused);
229297-
sqlite3_result_text(pCtx, "fts5: 2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e", -1, SQLITE_TRANSIENT);
229309+
sqlite3_result_text(pCtx, "fts5: 2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886", -1, SQLITE_TRANSIENT);
229298229310
}
229299229311

229300229312
/*
@@ -234220,9 +234232,9 @@ SQLITE_API int sqlite3_stmt_init(
234220234232
#endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_STMTVTAB) */
234221234233

234222234234
/************** End of stmt.c ************************************************/
234223-
#if __LINE__!=234223
234235+
#if __LINE__!=234235
234224234236
#undef SQLITE_SOURCE_ID
234225-
#define SQLITE_SOURCE_ID "2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212dalt2"
234237+
#define SQLITE_SOURCE_ID "2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98faalt2"
234226234238
#endif
234227234239
/* Return the source-id for this library */
234228234240
SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }

src/sqlite3.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ extern "C" {
123123
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
124124
** [sqlite_version()] and [sqlite_source_id()].
125125
*/
126-
#define SQLITE_VERSION "3.35.4"
127-
#define SQLITE_VERSION_NUMBER 3035004
128-
#define SQLITE_SOURCE_ID "2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e"
126+
#define SQLITE_VERSION "3.35.5"
127+
#define SQLITE_VERSION_NUMBER 3035005
128+
#define SQLITE_SOURCE_ID "2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886"
129129

130130
/*
131131
** CAPI3REF: Run-Time Library Version Numbers

src/sqlite3mc_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
#define SQLITE3MC_VERSION_MAJOR 1
1616
#define SQLITE3MC_VERSION_MINOR 2
17-
#define SQLITE3MC_VERSION_RELEASE 4
17+
#define SQLITE3MC_VERSION_RELEASE 5
1818
#define SQLITE3MC_VERSION_SUBRELEASE 0
19-
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.2.4"
19+
#define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.2.5"
2020

2121
#endif /* SQLITE3MC_VERSION_H_ */

src/sqlite3patched.c

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/******************************************************************************
22
** This file is an amalgamation of many separate C source files from SQLite
3-
** version 3.35.4. By combining all the individual C code files into this
3+
** version 3.35.5. By combining all the individual C code files into this
44
** single large file, the entire code can be compiled as a single translation
55
** unit. This allows many compilers to do optimizations that would not be
66
** possible if the files were compiled separately. Performance improvements
@@ -1186,9 +1186,9 @@ extern "C" {
11861186
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
11871187
** [sqlite_version()] and [sqlite_source_id()].
11881188
*/
1189-
#define SQLITE_VERSION "3.35.4"
1190-
#define SQLITE_VERSION_NUMBER 3035004
1191-
#define SQLITE_SOURCE_ID "2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e"
1189+
#define SQLITE_VERSION "3.35.5"
1190+
#define SQLITE_VERSION_NUMBER 3035005
1191+
#define SQLITE_SOURCE_ID "2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886"
11921192

11931193
/*
11941194
** CAPI3REF: Run-Time Library Version Numbers
@@ -108706,33 +108706,44 @@ SQLITE_PRIVATE void sqlite3AlterDropColumn(Parse *pParse, SrcList *pSrc, Token *
108706108706
sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenWrite);
108707108707
addr = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
108708108708
reg = ++pParse->nMem;
108709-
pParse->nMem += pTab->nCol;
108710108709
if( HasRowid(pTab) ){
108711108710
sqlite3VdbeAddOp2(v, OP_Rowid, iCur, reg);
108711+
pParse->nMem += pTab->nCol;
108712108712
}else{
108713108713
pPk = sqlite3PrimaryKeyIndex(pTab);
108714+
pParse->nMem += pPk->nColumn;
108715+
for(i=0; i<pPk->nKeyCol; i++){
108716+
sqlite3VdbeAddOp3(v, OP_Column, iCur, i, reg+i+1);
108717+
}
108718+
nField = pPk->nKeyCol;
108714108719
}
108720+
regRec = ++pParse->nMem;
108715108721
for(i=0; i<pTab->nCol; i++){
108716108722
if( i!=iCol && (pTab->aCol[i].colFlags & COLFLAG_VIRTUAL)==0 ){
108717108723
int regOut;
108718108724
if( pPk ){
108719108725
int iPos = sqlite3TableColumnToIndex(pPk, i);
108720108726
int iColPos = sqlite3TableColumnToIndex(pPk, iCol);
108727+
if( iPos<pPk->nKeyCol ) continue;
108721108728
regOut = reg+1+iPos-(iPos>iColPos);
108722108729
}else{
108723108730
regOut = reg+1+nField;
108724108731
}
108725-
sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, i, regOut);
108732+
if( i==pTab->iPKey ){
108733+
sqlite3VdbeAddOp2(v, OP_Null, 0, regOut);
108734+
}else{
108735+
sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, i, regOut);
108736+
}
108726108737
nField++;
108727108738
}
108728108739
}
108729-
regRec = reg + pTab->nCol;
108730108740
sqlite3VdbeAddOp3(v, OP_MakeRecord, reg+1, nField, regRec);
108731108741
if( pPk ){
108732108742
sqlite3VdbeAddOp4Int(v, OP_IdxInsert, iCur, regRec, reg+1, pPk->nKeyCol);
108733108743
}else{
108734108744
sqlite3VdbeAddOp3(v, OP_Insert, iCur, regRec, reg);
108735108745
}
108746+
sqlite3VdbeChangeP5(v, OPFLAG_SAVEPOSITION);
108736108747

108737108748
sqlite3VdbeAddOp2(v, OP_Next, iCur, addr+1); VdbeCoverage(v);
108738108749
sqlite3VdbeJumpHere(v, addr);
@@ -146914,6 +146925,7 @@ static void whereCombineDisjuncts(
146914146925
int op; /* Operator for the combined expression */
146915146926
int idxNew; /* Index in pWC of the next virtual term */
146916146927

146928+
if( (pOne->wtFlags | pTwo->wtFlags) & TERM_VNULL ) return;
146917146929
if( (pOne->eOperator & (WO_EQ|WO_LT|WO_LE|WO_GT|WO_GE))==0 ) return;
146918146930
if( (pTwo->eOperator & (WO_EQ|WO_LT|WO_LE|WO_GT|WO_GE))==0 ) return;
146919146931
if( (eOp & (WO_EQ|WO_LT|WO_LE))!=eOp
@@ -229309,7 +229321,7 @@ static void fts5SourceIdFunc(
229309229321
){
229310229322
assert( nArg==0 );
229311229323
UNUSED_PARAM2(nArg, apUnused);
229312-
sqlite3_result_text(pCtx, "fts5: 2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e", -1, SQLITE_TRANSIENT);
229324+
sqlite3_result_text(pCtx, "fts5: 2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886", -1, SQLITE_TRANSIENT);
229313229325
}
229314229326

229315229327
/*
@@ -234235,9 +234247,9 @@ SQLITE_API int sqlite3_stmt_init(
234235234247
#endif /* !defined(SQLITE_CORE) || defined(SQLITE_ENABLE_STMTVTAB) */
234236234248

234237234249
/************** End of stmt.c ************************************************/
234238-
#if __LINE__!=234223
234250+
#if __LINE__!=234235
234239234251
#undef SQLITE_SOURCE_ID
234240-
#define SQLITE_SOURCE_ID "2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212dalt2"
234252+
#define SQLITE_SOURCE_ID "2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98faalt2"
234241234253
#endif
234242234254
/* Return the source-id for this library */
234243234255
SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }

0 commit comments

Comments
 (0)