diff --git a/lib/Drivers/DML/postgres.js b/lib/Drivers/DML/postgres.js index 0b4ab12f..cdda4318 100644 --- a/lib/Drivers/DML/postgres.js +++ b/lib/Drivers/DML/postgres.js @@ -184,9 +184,6 @@ Driver.prototype.count = function (table, conditions, opts, cb) { q = q.build(); - if (this.opts.debug) { - require("../../Debug").sql('postgres', q); - } this.execQuery(q, cb); }; @@ -196,9 +193,6 @@ Driver.prototype.insert = function (table, data, id_prop, cb) { .set(data) .build(); - if (this.opts.debug) { - require("../../Debug").sql('postgres', q); - } this.execQuery(q + " RETURNING *", function (err, results) { if (err) { return cb(err); @@ -223,9 +217,6 @@ Driver.prototype.update = function (table, changes, conditions, cb) { .where(conditions) .build(); - if (this.opts.debug) { - require("../../Debug").sql('postgres', q); - } this.execQuery(q, cb); }; @@ -235,18 +226,12 @@ Driver.prototype.remove = function (table, conditions, cb) { .where(conditions) .build(); - if (this.opts.debug) { - require("../../Debug").sql('postgres', q); - } this.execQuery(q, cb); }; Driver.prototype.clear = function (table, cb) { var q = "TRUNCATE TABLE " + this.query.escapeId(table); - if (this.opts.debug) { - require("../../Debug").sql('postgres', q); - } this.execQuery(q, cb); };