Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Management Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
6cabc36d
Commit
6cabc36d
authored
Aug 11, 2022
by
Yan Sushchynski (EPAM)
Browse files
fix: search tags
parent
e3d5324d
Pipeline
#129733
failed with stages
in 22 minutes and 21 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
app/sdms/src/cloud/providers/anthos/postgresql.ts
View file @
6cabc36d
...
...
@@ -57,8 +57,8 @@ const datastorePSQLMapper: object = {
'
<
'
:
'
lt
'
,
'
>
'
:
'
gt
'
,
'
<=
'
:
'
lte
'
,
'
>=
'
:
'
gte
'
'
>=
'
:
'
gte
'
,
'
CONTAINS
'
:
'
array_contains
'
}
...
...
@@ -227,7 +227,7 @@ export class PostgreSQLDAO extends AbstractJournal {
}
public
getQueryFilterSymbolContains
():
string
{
return
'
=
'
;
return
'
CONTAINS
'
;
}
}
...
...
@@ -394,7 +394,12 @@ class PostgreJSONDataSQLFilter {
}
const
psqlOperator
=
datastorePSQLMapper
[
this
.
operator
];
filter
[
'
data
'
][
psqlOperator
]
=
this
.
value
;
// Prisma for PostgreSQL requires a value to be an array if the operator is 'array_contains'
if
(
this
.
operator
===
'
CONTAINS
'
)
{
filter
[
'
data
'
][
psqlOperator
]
=
[
this
.
value
];
}
else
{
filter
[
'
data
'
][
psqlOperator
]
=
this
.
value
;
}
return
filter
as
FilterExpression
;
}
...
...
David Diederich
@divido
mentioned in commit
654baa86
·
Aug 17, 2022
mentioned in commit
654baa86
mentioned in commit 654baa86444bb724f6dd7882e4e66438971004ba
Toggle commit list
Chad Leong
@chad
mentioned in merge request
!489 (merged)
·
Aug 17, 2022
mentioned in merge request
!489 (merged)
mentioned in merge request !489
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment