mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Revert the OP_MustBeInt opcode implementation on this branch so that it again matches trunk. The extra functionality is no longer required.
FossilOrigin-Name: c02f77b1b4d025d4243f883d6f3a2b3abcaf4944e0209f641b62c576415343dc
This commit is contained in:
@ -938,6 +938,38 @@ do_execsql_test 21.1 {
|
||||
FROM keyword_tab
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
foreach {tn expr err} {
|
||||
1 4.5 0
|
||||
2 NULL 1
|
||||
3 0.0 0
|
||||
4 0.1 0
|
||||
5 -0.1 1
|
||||
6 '' 1
|
||||
7 '2.0' 0
|
||||
8 '2.0x' 1
|
||||
9 x'1234' 1
|
||||
10 '1.2' 0
|
||||
} {
|
||||
set res {0 1}
|
||||
if {$err} {set res {1 {frame starting offset must be a non-negative number}} }
|
||||
do_catchsql_test 22.$tn.1 "
|
||||
WITH a(x, y) AS ( VALUES(1, 2) )
|
||||
SELECT sum(x) OVER (
|
||||
ORDER BY y RANGE BETWEEN $expr PRECEDING AND UNBOUNDED FOLLOWING
|
||||
) FROM a
|
||||
" $res
|
||||
|
||||
set res {0 1}
|
||||
if {$err} {set res {1 {frame ending offset must be a non-negative number}} }
|
||||
do_catchsql_test 22.$tn.2 "
|
||||
WITH a(x, y) AS ( VALUES(1, 2) )
|
||||
SELECT sum(x) OVER (
|
||||
ORDER BY y RANGE BETWEEN UNBOUNDED PRECEDING AND $expr FOLLOWING
|
||||
) FROM a
|
||||
" $res
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user