1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Improvements to the PATTERN option of the "testrunner.tcl joblist" command.

The pattern match is case insensitive and applies to the state and displaytype
in addition to displayname.

FossilOrigin-Name: 63a8f60f98115d4ee6e40de3ae775770aba76e19df6ddde68bccb7967b0200dc
This commit is contained in:
drh
2024-10-27 10:48:06 +00:00
parent 5598a3f8da
commit 0064c43a88
3 changed files with 10 additions and 8 deletions

View File

@ -663,7 +663,9 @@ if {[llength $argv]>=1
set SQL {SELECT displaytype, displayname, state FROM jobs}
if {$pattern!=""} {
regsub -all {[^a-zA-Z0-9*.-/]} $pattern ? pattern
append SQL " WHERE displayname GLOB '*$pattern*'"
set pattern [string tolower $pattern]
append SQL \
" WHERE lower(concat(state,' ',displaytype,' ',displayname)) GLOB '*$pattern*'"
}
append SQL " ORDER BY starttime"