mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
filtering by XML columsn in MSSQL
This commit is contained in:
parent
717ec5293b
commit
7ad1796db5
@ -86,6 +86,24 @@ const dialect = {
|
||||
},
|
||||
};
|
||||
}
|
||||
if (dataType && dataType.toUpperCase() == 'XML') {
|
||||
return {
|
||||
exprType: 'call',
|
||||
func: 'CONVERT',
|
||||
alias: alias || columnName,
|
||||
args: [
|
||||
{
|
||||
exprType: 'raw',
|
||||
sql: 'NVARCHAR(MAX)',
|
||||
},
|
||||
{
|
||||
exprType: 'column',
|
||||
columnName,
|
||||
source,
|
||||
},
|
||||
],
|
||||
};
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user