Implement std::cmp::PartialOrd for OwnedValue

This commit is contained in:
Bennett Clement
2024-07-16 08:32:10 +08:00
parent fdf77cee2b
commit 4d077cf3e5
4 changed files with 70 additions and 220 deletions

View File

@@ -108,19 +108,6 @@ do_execsql_test where-clause-lte {
select count(1) from users where id <= 2000;
} {2000}
do_execsql_test where-and {
select * from products where price > 50 and name != 'hat';
} {2|cap|82.0
5|sweatshirt|74.0
6|shorts|70.0
7|jeans|78.0
8|sneakers|82.0
11|accessories|81.0}
do_execsql_test where-multiple-and {
select * from products where price > 50 and name != 'boots' and price <= 70;
} {6|shorts|70.0}
do_execsql_test where-clause-unary-true {
select count(1) from users where 1;
} {10000}
@@ -253,3 +240,16 @@ Jamie|88
Jamie|41
Jamie|73
}
do_execsql_test where-float-int {
select * from products where price > 50 and name != 'hat';
} {2|cap|82.0
5|sweatshirt|74.0
6|shorts|70.0
7|jeans|78.0
8|sneakers|82.0
11|accessories|81.0}
do_execsql_test where-multiple-and {
select * from products where price > 50 and name != 'sweatshirt' and price < 75;
} {6|shorts|70.0}