mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
fixed filtering in json columns for postgres #889
This commit is contained in:
@@ -84,7 +84,7 @@ const dialect = {
|
||||
'xml',
|
||||
],
|
||||
|
||||
createColumnViewExpression(columnName, dataType, source, alias) {
|
||||
createColumnViewExpression(columnName, dataType, source, alias, purpose) {
|
||||
if (dataType && spatialTypes.includes(dataType.toUpperCase())) {
|
||||
return {
|
||||
exprType: 'call',
|
||||
@@ -100,7 +100,7 @@ const dialect = {
|
||||
};
|
||||
}
|
||||
|
||||
if (dataType?.toLowerCase() == 'uuid') {
|
||||
if (dataType?.toLowerCase() == 'uuid' || (purpose == 'filter' && dataType?.toLowerCase()?.startsWith('json'))) {
|
||||
return {
|
||||
exprType: 'unaryRaw',
|
||||
expr: {
|
||||
|
||||
Reference in New Issue
Block a user