Index: third_party/sqlite/src/test/tkt2822.test |
diff --git a/third_party/sqlite/src/test/tkt2822.test b/third_party/sqlite/src/test/tkt2822.test |
index 281e5dc91fc3adf9dc6610958b99247a774f0290..d0b16338c6b842a81ed0aaf2daacc8e10dbfa5ba 100644 |
--- a/third_party/sqlite/src/test/tkt2822.test |
+++ b/third_party/sqlite/src/test/tkt2822.test |
@@ -273,11 +273,21 @@ do_test tkt2822-7.1 { |
SELECT * FROM t7 ORDER BY 0; |
} |
} {1 {1st ORDER BY term out of range - should be between 1 and 25}} |
-do_test tkt2822-7.2 { |
+do_test tkt2822-7.2.1 { |
catchsql { |
SELECT * FROM t7 ORDER BY 1, 0; |
} |
} {1 {2nd ORDER BY term out of range - should be between 1 and 25}} |
+do_test tkt2822-7.2.2 { |
+ catchsql { |
+ SELECT * FROM t7 ORDER BY 1, 26; |
+ } |
+} {1 {2nd ORDER BY term out of range - should be between 1 and 25}} |
+do_test tkt2822-7.2.3 { |
+ catchsql { |
+ SELECT * FROM t7 ORDER BY 1, 65536; |
+ } |
+} {1 {2nd ORDER BY term out of range - should be between 1 and 25}} |
do_test tkt2822-7.3 { |
catchsql { |
SELECT * FROM t7 ORDER BY 1, 2, 0; |