dbgate/packages/engines/mssql/MsSqlDumper.js
2020-03-12 12:46:07 +01:00

17 lines
311 B
JavaScript

const SqlDumper = require('../default/SqlDumper');
class MsSqlDumper extends SqlDumper {
autoIncrement() {
this.put(' ^identity');
}
putStringValue(value) {
if (/[^\u0000-\u00ff]/.test(value)) {
this.putRaw('N');
}
super.putStringValue(value);
}
}
module.exports = MsSqlDumper;