updated qrz with non case sensitive search
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f80a43faf1
commit
44ff5e3734
@ -210,7 +210,7 @@ func SetSearchLikeStatement(config config.Config, qrzdt QrzDatatableInput) (sear
|
|||||||
var searchstmtslice []string
|
var searchstmtslice []string
|
||||||
if len(qrzdt.Columns) > 0 {
|
if len(qrzdt.Columns) > 0 {
|
||||||
for id, i := range qrzdt.Columns {
|
for id, i := range qrzdt.Columns {
|
||||||
searchstmtslice = append(searchstmtslice, fmt.Sprintf("%s LIKE '%%%s%%'", i.Name, qrzdt.Search.Value))
|
searchstmtslice = append(searchstmtslice, fmt.Sprintf("%s ILIKE '%%%s%%'", i.Name, qrzdt.Search.Value))
|
||||||
if id < len(qrzdt.Columns)-1 {
|
if id < len(qrzdt.Columns)-1 {
|
||||||
searchstmtslice = append(searchstmtslice, "OR")
|
searchstmtslice = append(searchstmtslice, "OR")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user