SYNC: fixes

This commit is contained in:
SPRINX0\prochazka
2025-02-24 16:13:43 +01:00
committed by Diflow
parent 20a1cc89ae
commit 805a063fa1
4 changed files with 28 additions and 8 deletions

View File

@@ -139,6 +139,16 @@ class Dumper extends SqlDumper {
// putByteArrayValue(value) {
// this.putRaw(`e'\\\\x${arrayToHexString(value)}'`);
// }
putValue(value, dataType) {
if (dataType?.toLowerCase() == 'timestamp') {
this.putRaw(`TO_TIMESTAMP('${value}', 'YYYY-MM-DD"T"HH24:MI:SS')`);
} else if (dataType?.toLowerCase() == 'date') {
this.putRaw(`TO_DATE('${value}', 'YYYY-MM-DD"T"HH24:MI:SS')`);
} else {
super.putValue(value);
}
}
}
module.exports = Dumper;