mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 01:55:59 +00:00
feat: dumper data type handling
This commit is contained in:
committed by
Nybkox
parent
bcf89b1f09
commit
09fa3ce438
@@ -21,7 +21,14 @@ export function dumpSqlExpression(dmp: SqlDumper, expr: Expression) {
|
||||
break;
|
||||
|
||||
case 'value':
|
||||
dmp.put('%v', expr.value);
|
||||
if (expr.dataType) {
|
||||
dmp.put('%V', {
|
||||
value: expr.value,
|
||||
dataType: expr.dataType,
|
||||
});
|
||||
} else {
|
||||
dmp.put('%v', expr.value);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'raw':
|
||||
|
||||
Reference in New Issue
Block a user