mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Changing the CAST behavior of REAL values actually changed a documented
requirement. So we also have to change the requirement evidence text to match. FossilOrigin-Name: d84aa44e3919e25f9520c5120a35ec21e837a9ea
This commit is contained in:
@ -1602,9 +1602,11 @@ do_expr_test e_expr-31.1.2 { CAST(1.99999 AS INTEGER) } integer 1
|
||||
do_expr_test e_expr-31.1.3 { CAST(-1.99999 AS INTEGER) } integer -1
|
||||
do_expr_test e_expr-31.1.4 { CAST(-0.99999 AS INTEGER) } integer 0
|
||||
|
||||
# EVIDENCE-OF: R-49503-28105 If a REAL is too large to be represented as
|
||||
# an INTEGER then the result of the cast is the largest negative
|
||||
# integer: -9223372036854775808.
|
||||
# EVIDENCE-OF: R-51517-40824 If a REAL is greater than the greatest
|
||||
# possible signed integer (+9223372036854775807) then the result is the
|
||||
# greatest possible signed integer and if the REAL is less than the
|
||||
# least possible signed integer (-9223372036854775808) then the result
|
||||
# is the least possible signed integer.
|
||||
#
|
||||
do_expr_test e_expr-31.2.1 { CAST(2e+50 AS INT) } integer 9223372036854775807
|
||||
do_expr_test e_expr-31.2.2 { CAST(-2e+50 AS INT) } integer -9223372036854775808
|
||||
|
Reference in New Issue
Block a user