From 7569b460a2e1c354325315dbe8ca45c41bb26b6e Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 24 Aug 2023 12:59:00 -0400 Subject: [PATCH 1/2] dep: update sqlite3 to v3.43.0 https://sqlite.org/releaselog/3_43_0.html --- dependencies.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dependencies.yml b/dependencies.yml index fbd23dab..c387f53b 100644 --- a/dependencies.yml +++ b/dependencies.yml @@ -2,13 +2,13 @@ :sqlite3: # checksum verified by first checking the published sha3(256) checksum against https://sqlite.org/download.html: # - # $ sha3sum -a 256 ports/archives/sqlite-autoconf-3420000.tar.gz - # 643898e9fcc8f6069bcd47b0e6057221c1ed17bbee57da20d2752c79d91274e8 ports/archives/sqlite-autoconf-3420000.tar.gz + # $ sha3sum -a 256 ports/archives/sqlite-autoconf-3430000.tar.gz + # cc321c7b0a70f87aaefe5d0aa89cdd97b432c3d2d448fa623f20988007c49f34 ports/archives/sqlite-autoconf-3430000.tar.gz # - # $ sha256sum ports/archives/sqlite-autoconf-3420000.tar.gz - # 7abcfd161c6e2742ca5c6c0895d1f853c940f203304a0b49da4e1eca5d088ca6 ports/archives/sqlite-autoconf-3420000.tar.gz + # $ sha256sum ports/archives/sqlite-autoconf-3430000.tar.gz + # 49008dbf3afc04d4edc8ecfc34e4ead196973034293c997adad2f63f01762ae1 ports/archives/sqlite-autoconf-3430000.tar.gz # - :version: "3.42.0" + :version: "3.43.0" :files: - - :url: "https://sqlite.org/2023/sqlite-autoconf-3420000.tar.gz" - :sha256: "7abcfd161c6e2742ca5c6c0895d1f853c940f203304a0b49da4e1eca5d088ca6" + - :url: "https://sqlite.org/2023/sqlite-autoconf-3430000.tar.gz" + :sha256: "49008dbf3afc04d4edc8ecfc34e4ead196973034293c997adad2f63f01762ae1" From 5c67d561f73380df142ce715ca1dbdf87727a2e8 Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Thu, 24 Aug 2023 17:35:03 -0400 Subject: [PATCH 2/2] test: avoid using floats whose rounding is affected by valgrind Without valgrind, "1.4" is inserted as 1.39999999999999991118, but with valgrind it is inserted as 1.40000000000000013323. Let's just use "1.5". --- test/test_integration_statement.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_integration_statement.rb b/test/test_integration_statement.rb index 20dd6fcc..759941f3 100644 --- a/test/test_integration_statement.rb +++ b/test/test_integration_statement.rb @@ -77,10 +77,10 @@ def test_bind_param_by_name_good def test_bind_param_with_various_types @db.transaction do @db.execute "create table all_types ( a integer primary key, b float, c string, d integer )" - @db.execute "insert into all_types ( b, c, d ) values ( 1.4, 'hello', 68719476735 )" + @db.execute "insert into all_types ( b, c, d ) values ( 1.5, 'hello', 68719476735 )" end - assert_equal 1, @db.execute( "select * from all_types where b = ?", 1.4 ).length + assert_equal 1, @db.execute( "select * from all_types where b = ?", 1.5 ).length assert_equal 1, @db.execute( "select * from all_types where c = ?", 'hello').length assert_equal 1, @db.execute( "select * from all_types where d = ?", 68719476735).length end