Fossil SCM

Check-in the fix for the i16/i64 mixup with the ynVar type in SQLite.

drh 2009-11-05 00:07 trunk
Commit e200c8d65f4fa4ef569ae38f5dd7baa2d6a3b058
2 files changed +5 -5 +3 -3
+5 -5
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -649,11 +649,11 @@
649649
**
650650
** Requirements: [H10011] [H10014]
651651
*/
652652
#define SQLITE_VERSION "3.6.20"
653653
#define SQLITE_VERSION_NUMBER 3006020
654
-#define SQLITE_SOURCE_ID "2009-11-04 13:30:02 eb7a544fe49d1626bacecfe53ddc03fe082e3243"
654
+#define SQLITE_SOURCE_ID "2009-11-04 23:02:52 f1c09acaca3e205acf5b077c9b2d0fe35f035c1e"
655655
656656
/*
657657
** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
658658
** KEYWORDS: sqlite3_version
659659
**
@@ -1353,11 +1353,11 @@
13531353
** CAPI3REF: Initialize The SQLite Library {H10130} <S20000><S30100>
13541354
**
13551355
** The sqlite3_initialize() routine initializes the
13561356
** SQLite library. The sqlite3_shutdown() routine
13571357
** deallocates any resources that were allocated by sqlite3_initialize().
1358
-** This routines are designed to aid in process initialization and
1358
+** These routines are designed to aid in process initialization and
13591359
** shutdown on embedded systems. Workstation applications using
13601360
** SQLite normally do not need to invoke either of these routines.
13611361
**
13621362
** A call to sqlite3_initialize() is an "effective" call if it is
13631363
** the first time sqlite3_initialize() is invoked during the lifetime of
@@ -2923,11 +2923,11 @@
29232923
** recommended for all new programs. The two older interfaces are retained
29242924
** for backwards compatibility, but their use is discouraged.
29252925
** In the "v2" interfaces, the prepared statement
29262926
** that is returned (the [sqlite3_stmt] object) contains a copy of the
29272927
** original SQL text. This causes the [sqlite3_step()] interface to
2928
-** behave a differently in three ways:
2928
+** behave differently in three ways:
29292929
**
29302930
** <ol>
29312931
** <li>
29322932
** If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
29332933
** always used to do, [sqlite3_step()] will automatically recompile the SQL
@@ -9125,11 +9125,11 @@
91259125
** need more than about 10 or 20 variables. But some extreme users want
91269126
** to have prepared statements with over 32767 variables, and for them
91279127
** the option is available (at compile-time).
91289128
*/
91299129
#if SQLITE_MAX_VARIABLE_NUMBER<=32767
9130
-typedef i64 ynVar;
9130
+typedef i16 ynVar;
91319131
#else
91329132
typedef int ynVar;
91339133
#endif
91349134
91359135
/*
@@ -36374,11 +36374,11 @@
3637436374
void (*xCodecSizeChng)(void*,int,int),
3637536375
void (*xCodecFree)(void*),
3637636376
void *pCodec
3637736377
){
3637836378
if( pPager->xCodecFree ) pPager->xCodecFree(pPager->pCodec);
36379
- pPager->xCodec = xCodec;
36379
+ pPager->xCodec = pPager->memDb ? 0 : xCodec;
3638036380
pPager->xCodecSizeChng = xCodecSizeChng;
3638136381
pPager->xCodecFree = xCodecFree;
3638236382
pPager->pCodec = pCodec;
3638336383
pagerReportSize(pPager);
3638436384
}
3638536385
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -649,11 +649,11 @@
649 **
650 ** Requirements: [H10011] [H10014]
651 */
652 #define SQLITE_VERSION "3.6.20"
653 #define SQLITE_VERSION_NUMBER 3006020
654 #define SQLITE_SOURCE_ID "2009-11-04 13:30:02 eb7a544fe49d1626bacecfe53ddc03fe082e3243"
655
656 /*
657 ** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
658 ** KEYWORDS: sqlite3_version
659 **
@@ -1353,11 +1353,11 @@
1353 ** CAPI3REF: Initialize The SQLite Library {H10130} <S20000><S30100>
1354 **
1355 ** The sqlite3_initialize() routine initializes the
1356 ** SQLite library. The sqlite3_shutdown() routine
1357 ** deallocates any resources that were allocated by sqlite3_initialize().
1358 ** This routines are designed to aid in process initialization and
1359 ** shutdown on embedded systems. Workstation applications using
1360 ** SQLite normally do not need to invoke either of these routines.
1361 **
1362 ** A call to sqlite3_initialize() is an "effective" call if it is
1363 ** the first time sqlite3_initialize() is invoked during the lifetime of
@@ -2923,11 +2923,11 @@
2923 ** recommended for all new programs. The two older interfaces are retained
2924 ** for backwards compatibility, but their use is discouraged.
2925 ** In the "v2" interfaces, the prepared statement
2926 ** that is returned (the [sqlite3_stmt] object) contains a copy of the
2927 ** original SQL text. This causes the [sqlite3_step()] interface to
2928 ** behave a differently in three ways:
2929 **
2930 ** <ol>
2931 ** <li>
2932 ** If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
2933 ** always used to do, [sqlite3_step()] will automatically recompile the SQL
@@ -9125,11 +9125,11 @@
9125 ** need more than about 10 or 20 variables. But some extreme users want
9126 ** to have prepared statements with over 32767 variables, and for them
9127 ** the option is available (at compile-time).
9128 */
9129 #if SQLITE_MAX_VARIABLE_NUMBER<=32767
9130 typedef i64 ynVar;
9131 #else
9132 typedef int ynVar;
9133 #endif
9134
9135 /*
@@ -36374,11 +36374,11 @@
36374 void (*xCodecSizeChng)(void*,int,int),
36375 void (*xCodecFree)(void*),
36376 void *pCodec
36377 ){
36378 if( pPager->xCodecFree ) pPager->xCodecFree(pPager->pCodec);
36379 pPager->xCodec = xCodec;
36380 pPager->xCodecSizeChng = xCodecSizeChng;
36381 pPager->xCodecFree = xCodecFree;
36382 pPager->pCodec = pCodec;
36383 pagerReportSize(pPager);
36384 }
36385
--- src/sqlite3.c
+++ src/sqlite3.c
@@ -649,11 +649,11 @@
649 **
650 ** Requirements: [H10011] [H10014]
651 */
652 #define SQLITE_VERSION "3.6.20"
653 #define SQLITE_VERSION_NUMBER 3006020
654 #define SQLITE_SOURCE_ID "2009-11-04 23:02:52 f1c09acaca3e205acf5b077c9b2d0fe35f035c1e"
655
656 /*
657 ** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
658 ** KEYWORDS: sqlite3_version
659 **
@@ -1353,11 +1353,11 @@
1353 ** CAPI3REF: Initialize The SQLite Library {H10130} <S20000><S30100>
1354 **
1355 ** The sqlite3_initialize() routine initializes the
1356 ** SQLite library. The sqlite3_shutdown() routine
1357 ** deallocates any resources that were allocated by sqlite3_initialize().
1358 ** These routines are designed to aid in process initialization and
1359 ** shutdown on embedded systems. Workstation applications using
1360 ** SQLite normally do not need to invoke either of these routines.
1361 **
1362 ** A call to sqlite3_initialize() is an "effective" call if it is
1363 ** the first time sqlite3_initialize() is invoked during the lifetime of
@@ -2923,11 +2923,11 @@
2923 ** recommended for all new programs. The two older interfaces are retained
2924 ** for backwards compatibility, but their use is discouraged.
2925 ** In the "v2" interfaces, the prepared statement
2926 ** that is returned (the [sqlite3_stmt] object) contains a copy of the
2927 ** original SQL text. This causes the [sqlite3_step()] interface to
2928 ** behave differently in three ways:
2929 **
2930 ** <ol>
2931 ** <li>
2932 ** If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
2933 ** always used to do, [sqlite3_step()] will automatically recompile the SQL
@@ -9125,11 +9125,11 @@
9125 ** need more than about 10 or 20 variables. But some extreme users want
9126 ** to have prepared statements with over 32767 variables, and for them
9127 ** the option is available (at compile-time).
9128 */
9129 #if SQLITE_MAX_VARIABLE_NUMBER<=32767
9130 typedef i16 ynVar;
9131 #else
9132 typedef int ynVar;
9133 #endif
9134
9135 /*
@@ -36374,11 +36374,11 @@
36374 void (*xCodecSizeChng)(void*,int,int),
36375 void (*xCodecFree)(void*),
36376 void *pCodec
36377 ){
36378 if( pPager->xCodecFree ) pPager->xCodecFree(pPager->pCodec);
36379 pPager->xCodec = pPager->memDb ? 0 : xCodec;
36380 pPager->xCodecSizeChng = xCodecSizeChng;
36381 pPager->xCodecFree = xCodecFree;
36382 pPager->pCodec = pCodec;
36383 pagerReportSize(pPager);
36384 }
36385
+3 -3
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -119,11 +119,11 @@
119119
**
120120
** Requirements: [H10011] [H10014]
121121
*/
122122
#define SQLITE_VERSION "3.6.20"
123123
#define SQLITE_VERSION_NUMBER 3006020
124
-#define SQLITE_SOURCE_ID "2009-11-04 13:30:02 eb7a544fe49d1626bacecfe53ddc03fe082e3243"
124
+#define SQLITE_SOURCE_ID "2009-11-04 23:02:52 f1c09acaca3e205acf5b077c9b2d0fe35f035c1e"
125125
126126
/*
127127
** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
128128
** KEYWORDS: sqlite3_version
129129
**
@@ -823,11 +823,11 @@
823823
** CAPI3REF: Initialize The SQLite Library {H10130} <S20000><S30100>
824824
**
825825
** The sqlite3_initialize() routine initializes the
826826
** SQLite library. The sqlite3_shutdown() routine
827827
** deallocates any resources that were allocated by sqlite3_initialize().
828
-** This routines are designed to aid in process initialization and
828
+** These routines are designed to aid in process initialization and
829829
** shutdown on embedded systems. Workstation applications using
830830
** SQLite normally do not need to invoke either of these routines.
831831
**
832832
** A call to sqlite3_initialize() is an "effective" call if it is
833833
** the first time sqlite3_initialize() is invoked during the lifetime of
@@ -2393,11 +2393,11 @@
23932393
** recommended for all new programs. The two older interfaces are retained
23942394
** for backwards compatibility, but their use is discouraged.
23952395
** In the "v2" interfaces, the prepared statement
23962396
** that is returned (the [sqlite3_stmt] object) contains a copy of the
23972397
** original SQL text. This causes the [sqlite3_step()] interface to
2398
-** behave a differently in three ways:
2398
+** behave differently in three ways:
23992399
**
24002400
** <ol>
24012401
** <li>
24022402
** If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
24032403
** always used to do, [sqlite3_step()] will automatically recompile the SQL
24042404
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -119,11 +119,11 @@
119 **
120 ** Requirements: [H10011] [H10014]
121 */
122 #define SQLITE_VERSION "3.6.20"
123 #define SQLITE_VERSION_NUMBER 3006020
124 #define SQLITE_SOURCE_ID "2009-11-04 13:30:02 eb7a544fe49d1626bacecfe53ddc03fe082e3243"
125
126 /*
127 ** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
128 ** KEYWORDS: sqlite3_version
129 **
@@ -823,11 +823,11 @@
823 ** CAPI3REF: Initialize The SQLite Library {H10130} <S20000><S30100>
824 **
825 ** The sqlite3_initialize() routine initializes the
826 ** SQLite library. The sqlite3_shutdown() routine
827 ** deallocates any resources that were allocated by sqlite3_initialize().
828 ** This routines are designed to aid in process initialization and
829 ** shutdown on embedded systems. Workstation applications using
830 ** SQLite normally do not need to invoke either of these routines.
831 **
832 ** A call to sqlite3_initialize() is an "effective" call if it is
833 ** the first time sqlite3_initialize() is invoked during the lifetime of
@@ -2393,11 +2393,11 @@
2393 ** recommended for all new programs. The two older interfaces are retained
2394 ** for backwards compatibility, but their use is discouraged.
2395 ** In the "v2" interfaces, the prepared statement
2396 ** that is returned (the [sqlite3_stmt] object) contains a copy of the
2397 ** original SQL text. This causes the [sqlite3_step()] interface to
2398 ** behave a differently in three ways:
2399 **
2400 ** <ol>
2401 ** <li>
2402 ** If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
2403 ** always used to do, [sqlite3_step()] will automatically recompile the SQL
2404
--- src/sqlite3.h
+++ src/sqlite3.h
@@ -119,11 +119,11 @@
119 **
120 ** Requirements: [H10011] [H10014]
121 */
122 #define SQLITE_VERSION "3.6.20"
123 #define SQLITE_VERSION_NUMBER 3006020
124 #define SQLITE_SOURCE_ID "2009-11-04 23:02:52 f1c09acaca3e205acf5b077c9b2d0fe35f035c1e"
125
126 /*
127 ** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
128 ** KEYWORDS: sqlite3_version
129 **
@@ -823,11 +823,11 @@
823 ** CAPI3REF: Initialize The SQLite Library {H10130} <S20000><S30100>
824 **
825 ** The sqlite3_initialize() routine initializes the
826 ** SQLite library. The sqlite3_shutdown() routine
827 ** deallocates any resources that were allocated by sqlite3_initialize().
828 ** These routines are designed to aid in process initialization and
829 ** shutdown on embedded systems. Workstation applications using
830 ** SQLite normally do not need to invoke either of these routines.
831 **
832 ** A call to sqlite3_initialize() is an "effective" call if it is
833 ** the first time sqlite3_initialize() is invoked during the lifetime of
@@ -2393,11 +2393,11 @@
2393 ** recommended for all new programs. The two older interfaces are retained
2394 ** for backwards compatibility, but their use is discouraged.
2395 ** In the "v2" interfaces, the prepared statement
2396 ** that is returned (the [sqlite3_stmt] object) contains a copy of the
2397 ** original SQL text. This causes the [sqlite3_step()] interface to
2398 ** behave differently in three ways:
2399 **
2400 ** <ol>
2401 ** <li>
2402 ** If the database schema changes, instead of returning [SQLITE_SCHEMA] as it
2403 ** always used to do, [sqlite3_step()] will automatically recompile the SQL
2404

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button