fixed Syntax error when trying to sort by UUID column #895

This commit is contained in:
Jan Prochazka
2024-09-26 09:06:14 +02:00
parent 888f5c6260
commit a4872b4159
2 changed files with 15 additions and 5 deletions

View File

@@ -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))
);