mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 10:06:00 +00:00
feat: dumper data type handling
This commit is contained in:
committed by
Nybkox
parent
bcf89b1f09
commit
09fa3ce438
@@ -70,7 +70,7 @@ export class SqlDumper implements AlterProcessor {
|
||||
putByteArrayValue(value) {
|
||||
this.put('^null');
|
||||
}
|
||||
putValue(value) {
|
||||
putValue(value, dataType = null) {
|
||||
if (value === null) this.put('^null');
|
||||
else if (value === true) this.putRaw('1');
|
||||
else if (value === false) this.putRaw('0');
|
||||
@@ -117,6 +117,9 @@ export class SqlDumper implements AlterProcessor {
|
||||
case 'v':
|
||||
this.putValue(value);
|
||||
break;
|
||||
case 'V':
|
||||
this.putValue(value.value, value.dataType);
|
||||
break;
|
||||
case 'c':
|
||||
value(this);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user