Implement #216: order by column number

This commit is contained in:
jussisaurio
2024-07-26 14:32:58 +03:00
parent a1093501a0
commit e3cc3da7ca
2 changed files with 25 additions and 2 deletions

View File

@@ -45,3 +45,8 @@ do_execsql_test basic-order-by-and-limit-3 {
do_execsql_test order-by-qualified {
select u.first_name from users u order by u.first_name limit 1;
} {Aaron}
do_execsql_test order-by-column-number {
select first_name, last_name, age from users order by 3,2 limit 2;
} {Teresa|Allen|1
David|Baker|1}