Skip to content

Commit cef1953

Browse files
authored
Advance the SQLite pin to 3.54.1 (#7)
1 parent 59b2dbf commit cef1953

110 files changed

Lines changed: 4097 additions & 182 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎internal/reference/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ failure rather than as a silent divergence.
2525
| `tokenize.c` | `src/tokenize.c` |
2626
| `mkkeywordhash.c` | `tool/mkkeywordhash.c` |
2727

28-
Both come from SQLite 3.53.4, the release pinned in
28+
Both come from SQLite 3.54.1, the release pinned in
2929
`cmd/regenerate-parse/main.go` and recorded in
3030
`parser/testdata/README.md`. When the pin advances, replace them.
3131

‎internal/reference/parse.y‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ seltablist(A) ::= stl_prefix(A) nm(Y) dbnm(D) LP exprlist(E) RP as(Z) on_using(N
784784
SrcItem *pOld = F->a;
785785
assert( pOld->fg.fixedSchema==0 );
786786
pNew->zName = pOld->zName;
787+
pOld->zName = 0;
787788
assert( pOld->fg.fixedSchema==0 );
788789
if( pOld->fg.isSubquery ){
789790
pNew->fg.isSubquery = 1;
@@ -803,8 +804,13 @@ seltablist(A) ::= stl_prefix(A) nm(Y) dbnm(D) LP exprlist(E) RP as(Z) on_using(N
803804
pOld->u1.pFuncArg = 0;
804805
pOld->fg.isTabFunc = 0;
805806
pNew->fg.isTabFunc = 1;
807+
}else if( pOld->fg.isIndexedBy ){
808+
pNew->u1.zIndexedBy = pOld->u1.zIndexedBy;
809+
pOld->u1.zIndexedBy = 0;
810+
pOld->fg.isIndexedBy = 0;
811+
pNew->fg.isIndexedBy = 1;
806812
}
807-
pOld->zName = 0;
813+
pNew->fg.notIndexed = pOld->fg.notIndexed;
808814
}
809815
sqlite3SrcListDelete(pParse->db, F);
810816
}else{
@@ -1512,7 +1518,11 @@ expr(A) ::= expr(A) between_op(N) expr(X) AND expr(Y). [BETWEEN] {
15121518
}
15131519
}else{
15141520
Expr *pRHS = Y->a[0].pExpr;
1515-
if( Y->nExpr==1 && sqlite3ExprIsConstant(pParse,pRHS) && A->op!=TK_VECTOR ){
1521+
if( Y->nExpr==1
1522+
&& sqlite3ExprIsConstant(pParse,pRHS)
1523+
&& pRHS->op!=TK_COLLATE
1524+
&& A->op!=TK_VECTOR
1525+
){
15161526
Y->a[0].pExpr = 0;
15171527
sqlite3ExprListDelete(pParse->db, Y);
15181528
pRHS = sqlite3PExpr(pParse, TK_UPLUS, pRHS, 0);

‎internal/sqlitesrc/sqlitesrc.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ var oracleSource []byte
3535
// constants and parser/testdata/README.md, regenerate the corpus, and
3636
// review the diff.
3737
const (
38-
Version = "3530400" // 3.53.4
38+
Version = "3540100" // 3.54.1
3939
year = "2026"
40-
amalgamationSHA = "1e71ddf93849c6a6ecf58b827c0692073d2dd7ee40196158068f7b29f422e87d"
41-
srcSHA = "d18fa15aec74d8c17e1463f861095adc01b5ad190256acb4f91d22f0368d232b"
40+
amalgamationSHA = "0a9c8e34352dad46006aa82836d5383bff9dc6bc9ce5a60553c05aa30e6ad1f9"
41+
srcSHA = "387e7f6cad4797b17848c07d453dc6606917bb356a6cfe5a3abafd38c240c71b"
4242
)
4343

4444
// Oracle returns the path to the compiled oracle binary, downloading the

‎parser/testdata/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ own goldens; they never outrank the accept/reject corpus below.
3434

3535
| artifact | file | SHA-256 |
3636
|---|---|---|
37-
| SQLite 3.53.4 amalgamation | `https://sqlite.org/2026/sqlite-amalgamation-3530400.zip` | `1e71ddf93849c6a6ecf58b827c0692073d2dd7ee40196158068f7b29f422e87d` |
38-
| SQLite 3.53.4 source | `https://sqlite.org/2026/sqlite-src-3530400.zip` | `d18fa15aec74d8c17e1463f861095adc01b5ad190256acb4f91d22f0368d232b` |
37+
| SQLite 3.54.1 amalgamation | `https://sqlite.org/2026/sqlite-amalgamation-3540100.zip` | `0a9c8e34352dad46006aa82836d5383bff9dc6bc9ce5a60553c05aa30e6ad1f9` |
38+
| SQLite 3.54.1 source | `https://sqlite.org/2026/sqlite-src-3540100.zip` | `387e7f6cad4797b17848c07d453dc6606917bb356a6cfe5a3abafd38c240c71b` |
3939

4040
## License
4141

‎parser/testdata/aggnested.test‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,41 @@ stmt 81 err 1 -1 110 no such table: t0
278278
stmt 110 ok
279279
stmt 137 err 1 -1 166 no such table: t1
280280
stmt 166 err 1 -1 325 no such table: t0
281+
==== 11.1
282+
283+
DROP TABLE t1;
284+
CREATE TABLE t1(c1); INSERT INTO t1 VALUES(11);
285+
DROP TABLE t2;
286+
CREATE TABLE t2(c2);
287+
----
288+
stmt 0 err 1 -1 17 no such table: t1
289+
stmt 17 ok
290+
stmt 40 err 1 -1 67 no such table: t1
291+
stmt 67 err 1 -1 84 no such table: t2
292+
stmt 84 ok
293+
==== 11.2
294+
295+
SELECT * FROM t1 WHERE EXISTS(
296+
SELECT 1 FROM t2 WHERE (
297+
SELECT COUNT(*) FROM (
298+
SELECT 1
299+
UNION ALL
300+
SELECT SUM(c1)
301+
)
302+
)
303+
);
304+
----
305+
stmt 0 err 1 -1 168 no such table: t1
306+
==== 11.3
307+
308+
SELECT * FROM t1 WHERE EXISTS(
309+
SELECT 1 FROM t2 WHERE (
310+
SELECT COUNT(*) FROM (
311+
SELECT 1 WHERE true
312+
UNION ALL
313+
SELECT SUM(c1)
314+
)
315+
)
316+
);
317+
----
318+
stmt 0 err 1 -1 179 no such table: t1

‎parser/testdata/aggorderby.test‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,24 @@ stmt 0 ok
148148
----
149149
stmt 0 ok
150150
stmt 25 err 1 -1 56 no such table: t1
151+
==== 11.0
152+
153+
CREATE TABLE t1(a);
154+
CREATE TABLE t2(b);
155+
INSERT INTO t1 VALUES(42);
156+
INSERT INTO t2 VALUES(2);
157+
----
158+
stmt 0 ok
159+
stmt 22 ok
160+
stmt 44 err 1 -1 73 no such table: t1
161+
stmt 73 err 1 -1 101 no such table: t2
162+
==== 11.1
163+
164+
SELECT sum(b ORDER BY a) FROM t1, t2;
165+
----
166+
stmt 0 err 1 -1 40 no such table: t1
167+
==== 11.2
168+
169+
SELECT group_concat(b ORDER BY a) FROM t1, t2;
170+
----
171+
stmt 0 err 1 -1 49 no such table: t1

‎parser/testdata/alter.test‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,3 +444,13 @@ stmt 179 err 1 -1 210 no such table: e
444444
SELECT name, type FROM sqlite_schema ORDER BY name;
445445
----
446446
stmt 0 ok
447+
==== alter-22.1
448+
449+
CREATE TABLE t1(a,b);
450+
----
451+
stmt 0 ok
452+
==== alter-22.2
453+
454+
ALTER TABLE t1 ADD COLUMN c CHECK( if(c<10,1,sqlite_fail('bummer',1)));
455+
----
456+
stmt 0 err 1 -1 36 no such table: t1

‎parser/testdata/altercons.test‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,41 @@ stmt 0 err 1 -1 92 no such table: t1
347347
ALTER TABLE t1 ADD CONSTRAINT c1 CHECK( x>#2 );
348348
----
349349
stmt 0 err 1 45 49 near "#2": syntax error
350+
==== 11.1
351+
352+
CREATE TABLE t1(a, b, c);
353+
INSERT INTO t1 VALUES(1, 2, 3);
354+
INSERT INTO t1 VALUES(4, NULL, 6);
355+
INSERT INTO t1 VALUES(NULL, NULL, NULL);
356+
----
357+
stmt 0 ok
358+
stmt 28 err 1 -1 62 no such table: t1
359+
stmt 62 err 1 -1 99 no such table: t1
360+
stmt 99 err 1 -1 142 no such table: t1
361+
==== 11.3
362+
363+
SELECT sql FROM sqlite_schema WHERE name='t1';
364+
----
365+
stmt 0 ok
366+
==== 11.3.1
367+
368+
ALTER TABLE t1 ADD CONSTRAINT c5 CHECK (b>2);
369+
----
370+
stmt 0 err 1 -1 48 no such table: t1
371+
==== 11.3.2
372+
373+
UPDATE t1 SET b=NULL WHERE b=2;
374+
ALTER TABLE t1 ADD CONSTRAINT c5 CHECK (b>2);
375+
----
376+
stmt 0 err 1 -1 34 no such table: t1
377+
stmt 34 err 1 -1 82 no such table: t1
378+
==== 11.4.1
379+
380+
INSERT INTO t1 VALUES(7, NULL, 8);
381+
----
382+
stmt 0 err 1 -1 37 no such table: t1
383+
==== 11.4.2
384+
385+
INSERT INTO t1 VALUES(5, 1, 0);
386+
----
387+
stmt 0 err 1 -1 34 no such table: t1

‎parser/testdata/altercons2.test‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ stmt 0 ok
110110
ALTER TABLE abc DROP CONSTRAINT one
111111
----
112112
stmt 0 err 1 -1 39 no such table: abc
113+
==== 8.2
114+
115+
SELECT sql FROM sqlite_schema
116+
----
117+
stmt 0 ok
113118
==== 9.0
114119

115120
CREATE TABLE abc(a, b NOT NULL AS (a+1))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)