Skip to content

Commit c52e6e6

Browse files
authored
Bump SQLite to 3.37.0 (dotnet#6530)
Context: https://sqlite.org/releaselog/3_37_0.html Context: sqlite/sqlite@c2df4d6 Context: sqlite/sqlite@version-3.36.0...version-3.37.0 % git diff --shortstat version-3.36.0...version-3.37.0 253 files changed, 13372 insertions(+), 4534 deletions(-) Changes: xamarin/sqlite@a575761...88e12a9 % git diff --shortstat a5757617...88e12a9e 13 files changed, 62515 insertions(+), 39564 deletions(-) An apparent undocumented "breaking change" that we encountered: probably as of sqlite/sqlite@c2df4d6a, if a column type is one of a known set of types, then the type is stored in the bit-field, not as a string. For example, given: CREATE TABLE TESTTABLE (DATA blob not null) if you query the type of the `DATA` column, SQLite will now return `BLOB`, whereas previously it would return `blob`; the case is no longer preserved. This broke one of our unit tests, which was fixed by using a case-insensitive comparison.
1 parent c3710ee commit c52e6e6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Mono.Android-Tests/Mono.Data.Sqlite/SqliteTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public void BasicFunctionality ()
126126
c.CommandText = "SELECT * FROM TESTTABLE";
127127
using (var r = c.ExecuteReader ()) {
128128
string typeName = r.GetDataTypeName (0);
129-
Assert.IsFalse (typeName != "blob", $"Bug in DbDataReader.GetDataTypeName: should be 'blob', got: {typeName}");
129+
Assert.IsTrue (String.Compare (typeName, "BLOB", StringComparison.OrdinalIgnoreCase) == 0, $"Bug in DbDataReader.GetDataTypeName: should be 'blob', got: {typeName}");
130130
}
131131
});
132132
ItemsDb.Instance.WithCommand (c => {

0 commit comments

Comments
 (0)