1
0
Fork 0

Merge pull request #1632 from rqlite/sqlite-3450

Upgrade to SQLite 3.45.0
master
Philip O'Toole 8 months ago committed by GitHub
commit 856c4e1c18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,6 +1,7 @@
## 8.18.0 (unreleased)
### New features
- [PR #1631](https://github.com/rqlite/rqlite/pull/1631): Allow HTTP clients to control number of retries.
- [PR #1632](https://github.com/rqlite/rqlite/pull/1632): Upgrade to SQLite 3.45.0.
- [PR #1631](https://github.com/rqlite/rqlite/pull/1631): Allow HTTP clients to control number of retries for internode requests.
### Implementation changes and bug fixes
- [PR #1629](https://github.com/rqlite/rqlite/pull/1629): Set default cluster client retries to 0.

@ -371,6 +371,26 @@ func testSimpleSingleJSONStatements(t *testing.T, db *DB) {
}
}
func testSimpleSingleJSONBStatements(t *testing.T, db *DB) {
_, err := db.ExecuteStringStmt("CREATE TABLE foo (tag JSONB)")
if err != nil {
t.Fatalf("failed to create table: %s", err.Error())
}
_, err = db.ExecuteStringStmt(`INSERT INTO foo(tag) VALUES('{"mittens": "qux"}')`)
if err != nil {
t.Fatalf("failed to insert record: %s", err.Error())
}
r, err := db.QueryStringStmt(`SELECT tag->>'mittens' FROM foo WHERE tag->>'mittens' = 'qux'`)
if err != nil {
t.Fatalf("failed to query: %s", err.Error())
}
if exp, got := `[{"columns":["tag->>'mittens'"],"types":["text"],"values":[["qux"]]}]`, asJSON(r); exp != got {
t.Fatalf("unexpected results for query, expected %s, got %s", exp, got)
}
}
func testSimpleJoinStatements(t *testing.T, db *DB) {
_, err := db.ExecuteStringStmt("CREATE TABLE names (id INTEGER NOT NULL PRIMARY KEY, name TEXT, ssn TEXT)")
if err != nil {
@ -1523,6 +1543,7 @@ func Test_DatabaseCommonOperations(t *testing.T) {
{"SimpleStatementsCollate", testSimpleStatementsCollate},
{"SimpleExpressionStatements", testSimpleExpressionStatements},
{"SimpleSingleJSONStatements", testSimpleSingleJSONStatements},
{"SimpleSingleJSONBStatements", testSimpleSingleJSONBStatements},
{"SimpleJoinStatements", testSimpleJoinStatements},
{"SimpleSingleConcatStatements", testSimpleSingleConcatStatements},
{"SimpleMultiStatements", testSimpleMultiStatements},

@ -9,7 +9,7 @@ require (
github.com/hashicorp/raft v1.6.0
github.com/mkideal/cli v0.2.7
github.com/mkideal/pkg v0.1.3
github.com/rqlite/go-sqlite3 v1.30.0
github.com/rqlite/go-sqlite3 v1.31.0
github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48
github.com/rqlite/rqlite-disco-clients v0.0.0-20231230135307-118e35426347
github.com/rqlite/sql v0.0.0-20240102050638-e741e9f54197

@ -190,8 +190,8 @@ github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8b
github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
github.com/rqlite/go-sqlite3 v1.30.0 h1:uwTOWlkW7gC3KxgRs86TgmYQt/wsI+znHDOYmYX3t34=
github.com/rqlite/go-sqlite3 v1.30.0/go.mod h1:nd4ooHtz396nqTudi+5u7stMN8EEkHjceyUARVYOceY=
github.com/rqlite/go-sqlite3 v1.31.0 h1:9C6NCUT63vtfKstAH8oRr2CyEGkGoVB+LbwdINGs8nU=
github.com/rqlite/go-sqlite3 v1.31.0/go.mod h1:R9H7CatgYBt3c+fSV/5yo2vLh4ZjCB0aMHdkv69fP4A=
github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48 h1:NZ62M+kT0JqhyFUMc8I4SMmfmD4NGJxhb2ePJQXjryc=
github.com/rqlite/raft-boltdb/v2 v2.0.0-20230523104317-c08e70f4de48/go.mod h1:CRnsxgy5G8fAf5J+AM0yrsSdxXHKkIYOaq2sm+Q4DYc=
github.com/rqlite/rqlite-disco-clients v0.0.0-20231230135307-118e35426347 h1:01eOG4AXjYsrsLRITgBFHaDPXys1NfeY2idx25ZJFF8=

Loading…
Cancel
Save