Skip to content

Commit 0248dab

Browse files
committed
1.2.2: Improve String like search operation
1 parent 5dde344 commit 0248dab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@grandlinex/bundle-postgresql",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "",
55
"type": "module",
66
"exports": {
@@ -46,7 +46,7 @@
4646
"@grandlinex/core": "1.2.0",
4747
"pg": "8.16.3",
4848
"moment": "2.30.1",
49-
"@types/pg": "8.15.5"
49+
"@types/pg": "8.15.6"
5050
},
5151
"devDependencies": {
5252
"@types/jest": "29.5.14",
@@ -67,7 +67,7 @@
6767
"ts-jest": "29.3.4",
6868
"ts-loader": "9.5.2",
6969
"ts-node": "10.9.2",
70-
"typedoc": "0.28.10",
70+
"typedoc": "0.28.15",
7171
"typescript": "5.9.2"
7272
},
7373
"repository": {

src/util/buildSearchQ.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function aFilter<E extends CoreEntity>(
3737
}
3838
return [`${key} != ${count.next()}`];
3939
case 'like':
40-
return [`${key} like '%' || ${count.next()} || '%'`];
40+
return [`LOWER(${key}) like '%' || LOWER(${count.next()}) || '%'`];
4141
case 'smallerThan':
4242
return [`${key} < ${count.next()}`];
4343
case 'greaterThan':

0 commit comments

Comments
 (0)