update libhelper on case sensitive
This commit is contained in:
@@ -4,6 +4,6 @@ import "gorm.io/gorm"
|
||||
|
||||
func SearchCodeOrName(search string, tx *gorm.DB) {
|
||||
if search != "" {
|
||||
tx.Where("\"Code\" LIKE ? OR \"Name\" LIKE ?", "%"+search+"%", "%"+search+"%")
|
||||
tx.Where("\"Code\" ILIKE ? OR \"Name\" ILIKE ?", "%"+search+"%", "%"+search+"%")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user