diff --git a/lib/Drivers/DML/postgres.js b/lib/Drivers/DML/postgres.js index b2470b69..7380a3a0 100644 --- a/lib/Drivers/DML/postgres.js +++ b/lib/Drivers/DML/postgres.js @@ -302,7 +302,9 @@ Driver.prototype.propertyToValue = function (value, property) { switch (property.type) { case "object": - value = JSON.stringify(value); + if (!Buffer.isBuffer(value)) { + value = new Buffer(JSON.stringify(value)); + } break; case "date": if (this.config.timezone && this.config.timezone != 'local') {