mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 16:06:01 +00:00
support blob values #211
This commit is contained in:
@@ -65,12 +65,8 @@ class Dumper extends SqlDumper {
|
||||
this.putCmd('^create ^table %f (^select * ^from %f)', targetName, sourceName);
|
||||
}
|
||||
|
||||
putValue(value) {
|
||||
if (value && value.type == 'Buffer' && _isArray(value.data)) {
|
||||
this.putRaw(`unhex('${arrayToHexString(value.data)}')`);
|
||||
} else {
|
||||
super.putValue(value);
|
||||
}
|
||||
putByteArrayValue(value) {
|
||||
this.putRaw(`unhex('${arrayToHexString(value)}')`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user