filtering by XML columsn in MSSQL

This commit is contained in:
Jan Prochazka 2022-06-23 10:06:09 +02:00
parent 717ec5293b
commit 7ad1796db5

View File

@ -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,
},
],
};
}
},
};