Handling decimal values in putValue method

This commit is contained in:
Stela Augustinova
2025-12-05 13:13:56 +01:00
parent bbbd291065
commit c1672ebc8e

View File

@@ -87,6 +87,7 @@ export class SqlDumper implements AlterProcessor {
this.putByteArrayValue(bytes); this.putByteArrayValue(bytes);
} }
else if (value?.$bigint) this.putRaw(value?.$bigint); else if (value?.$bigint) this.putRaw(value?.$bigint);
else if (value?.$decimal) this.putRaw(value?.$decimal);
else if (_isPlainObject(value) || _isArray(value)) this.putStringValue(JSON.stringify(value)); else if (_isPlainObject(value) || _isArray(value)) this.putStringValue(JSON.stringify(value));
else this.put('^null'); else this.put('^null');
} }