mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add the decimal_mul() function.
FossilOrigin-Name: 72eee04b67268ad38fd51ff32849f08c0a54cf1b481d5ecb11d77cc9c729ee03
This commit is contained in:
@ -115,4 +115,14 @@ do_execsql_test 4010 {
|
||||
FROM t3;
|
||||
} {1505500000000000000015055.00000000000000015055}
|
||||
|
||||
do_execsql_test 5000 {
|
||||
WITH RECURSIVE c(x,y,z) AS (
|
||||
VALUES(0,'1','1')
|
||||
UNION ALL
|
||||
SELECT x+1, decimal_mul(y,'2'), decimal_mul(z,'0.5')
|
||||
FROM c WHERE x<32
|
||||
)
|
||||
SELECT count(*) FROM c WHERE decimal_mul(y,z)='1';
|
||||
} {33}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user