mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
fix
This commit is contained in:
@@ -66,8 +66,11 @@ class Dumper extends SqlDumper {
|
||||
}
|
||||
|
||||
putValue(value) {
|
||||
if (value.type == 'Buffer' && _isArray(value.data)) this.putRaw(`unhex('${arrayToHexString(value.data)}')`);
|
||||
else super.putValue(value);
|
||||
if (value && value.type == 'Buffer' && _isArray(value.data)) {
|
||||
this.putRaw(`unhex('${arrayToHexString(value.data)}')`);
|
||||
} else {
|
||||
super.putValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user