mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-24 22:16:00 +00:00
filtering by XML columsn in MSSQL
This commit is contained in:
@@ -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,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user