This commit is contained in:
Jan Prochazka
2021-10-17 11:36:53 +02:00
parent 5bb9f181d8
commit 7eff7c649c
3 changed files with 7 additions and 4 deletions

View File

@@ -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);
}
}
}