CLI improvements. In the .check command, ignore leading and trailing

whitespace unless the --exact option is used.  In the .limit command, do
not print the new limit when changing the limit, but only when requesting
the current value of the limit.

FossilOrigin-Name: d72cb66d672d514822b2fbb0be8880377628599f1f8e2a219d36791c125c6242
This commit is contained in:
drh
2025-12-16 13:25:45 +00:00
parent 28ec7be607
commit 6c26b5db71
4 changed files with 32 additions and 15 deletions
+4 -4
View File
@@ -19,14 +19,14 @@
-- 0 1 2 3 4
-- 123456789 123456789 123456789 123456789 123
SELECT 'abcdefg' REGEXP '((((((((((((((((((abcdefg))))))))))))))))))';
.check "1\n"
.check 1
.limit like_pattern_length 42
.testcase 110
.limit like_pattern_length 42
SELECT 'abcdefg' REGEXP '((((((((((((((((((abcdefg))))))))))))))))))';
.check -glob "Error near line #: REGEXP pattern too big*"
.limit like_pattern_length 43
.testcase 120
.limit like_pattern_length 43
SELECT 'abcdefg' REGEXP '((((((((((((((((((abcdefg))))))))))))))))))';
.check "1\n"
.check 1