File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 2
2
:sqlite3 :
3
3
# checksum verified by first checking the published sha3(256) checksum against https://sqlite.org/download.html:
4
4
#
5
- # $ sha3sum -a 256 ports/archives/sqlite-autoconf-3430000 .tar.gz
6
- # cc321c7b0a70f87aaefe5d0aa89cdd97b432c3d2d448fa623f20988007c49f34 ports/archives/sqlite-autoconf-3430000 .tar.gz
5
+ # $ sha3sum -a 256 ports/archives/sqlite-autoconf-3430100 .tar.gz
6
+ # 8c6242fb2abf6a556e849d259134aca9130520b2218f9a7fb1f50eb0528a385a ports/archives/sqlite-autoconf-3430100 .tar.gz
7
7
#
8
- # $ sha256sum ports/archives/sqlite-autoconf-3430000 .tar.gz
9
- # 49008dbf3afc04d4edc8ecfc34e4ead196973034293c997adad2f63f01762ae1 ports/archives/sqlite-autoconf-3430000 .tar.gz
8
+ # $ sha256sum ports/archives/sqlite-autoconf-3430100 .tar.gz
9
+ # 46db2f10f306e163e4571b8974d44cd37078aae04295bbf08b253655df3265f4 ports/archives/sqlite-autoconf-3430100 .tar.gz
10
10
#
11
- :version : " 3.43.0 "
11
+ :version : " 3.43.1 "
12
12
:files :
13
- - :url : " https://sqlite.org/2023/sqlite-autoconf-3430000 .tar.gz"
14
- :sha256 : " 49008dbf3afc04d4edc8ecfc34e4ead196973034293c997adad2f63f01762ae1 "
13
+ - :url : " https://sqlite.org/2023/sqlite-autoconf-3430100 .tar.gz"
14
+ :sha256 : " 46db2f10f306e163e4571b8974d44cd37078aae04295bbf08b253655df3265f4 "
Original file line number Diff line number Diff line change @@ -570,5 +570,16 @@ def test_load_extension_with_nonstring_argument
570
570
assert_raises ( TypeError ) { db . load_extension ( 1 ) }
571
571
assert_raises ( TypeError ) { db . load_extension ( Pathname . new ( "foo.so" ) ) }
572
572
end
573
+
574
+ def test_raw_float_infinity
575
+ # https://github.com/sparklemotion/sqlite3-ruby/issues/396
576
+ skip if SQLite3 ::SQLITE_LOADED_VERSION >= "3.43.0"
577
+
578
+ db = SQLite3 ::Database . new ":memory:"
579
+ db . execute ( "create table foo (temperature float)" )
580
+ db . execute ( "insert into foo values (?)" , 37.5 )
581
+ db . execute ( "insert into foo values (?)" , Float ::INFINITY )
582
+ assert_equal Float ::INFINITY , db . execute ( "select avg(temperature) from foo" ) . first . first
583
+ end
573
584
end
574
585
end
You can’t perform that action at this time.
0 commit comments