mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 06:46:00 +00:00
support blob values #211
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { SqlDumper, testEqualColumns } = global.DBGATE_TOOLS;
|
||||
const { SqlDumper, testEqualColumns, arrayToHexString } = global.DBGATE_TOOLS;
|
||||
|
||||
class MsSqlDumper extends SqlDumper {
|
||||
constructor(driver, options) {
|
||||
@@ -10,7 +10,7 @@ class MsSqlDumper extends SqlDumper {
|
||||
|
||||
endCommand() {
|
||||
if (this.useHardSeparator) {
|
||||
this.putRaw('\nGO\n');
|
||||
this.putRaw('\nGO\n');
|
||||
} else {
|
||||
super.endCommand();
|
||||
}
|
||||
@@ -27,6 +27,10 @@ class MsSqlDumper extends SqlDumper {
|
||||
super.putStringValue(value);
|
||||
}
|
||||
|
||||
putByteArrayValue(value) {
|
||||
super.putRaw('0x' + arrayToHexString(value));
|
||||
}
|
||||
|
||||
allowIdentityInsert(table, allow) {
|
||||
this.putCmd('^set ^identity_insert %f %k', table, allow ? 'on' : 'off');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user