mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 07:56:01 +00:00
fixed Syntax error when trying to sort by UUID column #895
This commit is contained in:
@@ -105,11 +105,11 @@ const dialect = {
|
||||
exprType: 'unaryRaw',
|
||||
expr: {
|
||||
exprType: 'column',
|
||||
alias: alias || columnName,
|
||||
source,
|
||||
columnName,
|
||||
},
|
||||
afterSql: '::text',
|
||||
alias: alias || columnName,
|
||||
};
|
||||
}
|
||||
},
|
||||
@@ -136,9 +136,15 @@ const postgresDriverBase = {
|
||||
}
|
||||
|
||||
return (
|
||||
['authType', 'user', 'password', 'defaultDatabase', 'singleDatabase', 'isReadOnly', 'useSeparateSchemas'].includes(
|
||||
field
|
||||
) ||
|
||||
[
|
||||
'authType',
|
||||
'user',
|
||||
'password',
|
||||
'defaultDatabase',
|
||||
'singleDatabase',
|
||||
'isReadOnly',
|
||||
'useSeparateSchemas',
|
||||
].includes(field) ||
|
||||
(values.authType == 'socket' && ['socketPath'].includes(field)) ||
|
||||
(values.authType != 'socket' && ['server', 'port'].includes(field))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user