1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-10-23 21:49:02 +03:00
Files
sqlite/test/overflow1.sql
drh 848cad0ec0 Deal with harmless 32-bit integer overflow on parameters to some extension
SQL functions.
[bugs:/info/2026-10-15T04:34:08Z|Bug 2026-10-15T04:34:08Z]

FossilOrigin-Name: ca52702835d16afd04e936bc4d57f78f0c4d37f83b19b632122f6a699009ca3c
2026-10-15 21:46:13 +00:00

21 lines
511 B
SQL

# Bug 2026-10-15T04:34:08Z
.mode list -limits off
.null NULL
.testcase 100
SELECT decimal_pow2(3);
.check '+8.0e+00'
.testcase 101
SELECT decimal_pow2(4294967299);
.check --glob 'value 4294967299 is too large: range limit -2147483648..+2147483647'
.testcase 102
SELECT decimal_pow2(-4294967293);
.check --glob 'value -4294967293 is too large: range limit -2147483648..+2147483647'
.testcase 110
SELECT length(decimal(1.23456,10000));
.check 51
.testcase 120
SELECT length(dtostr(3.14159, 100000));
.check 357