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 22:sqlite3 :
33 # checksum verified by first checking the published sha3(256) checksum against https://sqlite.org/download.html:
44 #
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
77 #
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
1010 #
11- :version : " 3.43.0 "
11+ :version : " 3.43.1 "
1212 :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
570570 assert_raises ( TypeError ) { db . load_extension ( 1 ) }
571571 assert_raises ( TypeError ) { db . load_extension ( Pathname . new ( "foo.so" ) ) }
572572 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
573584 end
574585end
You can’t perform that action at this time.
0 commit comments