mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 10:08:20 +00:00
Fix Unary Negate Operation on Blobs
This commit is contained in:
parent
e07a6fc5c0
commit
e1ddf5ffcc
3 changed files with 22 additions and 3 deletions
|
@ -95,6 +95,18 @@ do_execsql_test subtract-agg-float-agg-int {
|
|||
SELECT sum(3.5) - sum(1)
|
||||
} {2.5}
|
||||
|
||||
do_execsql_test subtract-blob {
|
||||
SELECT -x'11'
|
||||
} {0}
|
||||
|
||||
do_execsql_test subtract-blob-empty {
|
||||
SELECT -x''
|
||||
} {0}
|
||||
|
||||
do_execsql_test subtract-blob-charcter {
|
||||
SELECT -'hi';
|
||||
} {0}
|
||||
|
||||
foreach {testnum lhs rhs ans} {
|
||||
1 'a' 'a' 0
|
||||
2 'a' 10 -10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue