mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Fix json rendering so that it shows positive and negative infinity as
9.0e+999 and -9.0e+999 respectively. FossilOrigin-Name: efce4690a52592c4f5fc7d023eebe771b0e615bb03c0fe203493f853b28e8f85
This commit is contained in:
@ -885,4 +885,16 @@ do_execsql_test json-19.3 {
|
||||
SELECT * FROM t1;
|
||||
} {}
|
||||
|
||||
# 2023-03-17 positive and negative infinities
|
||||
#
|
||||
do_execsql_test json-20.1 {
|
||||
SELECT json_object('a',2e370,'b',-3e380);
|
||||
} {{{"a":9.0e+999,"b":-9.0e+999}}}
|
||||
do_execsql_test json-20.2 {
|
||||
SELECT json_object('a',2e370,'b',-3e380)->>'a';
|
||||
} Inf
|
||||
do_execsql_test json-20.3 {
|
||||
SELECT json_object('a',2e370,'b',-3e380)->>'b';
|
||||
} {-Inf}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user