Permalink
Browse files

more trace

  • Loading branch information...
1 parent a4dab09 commit 6c47baa1534ad2b32b35151b0c664e9baa108c90 @joeferner committed Oct 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/connection.js
View
@@ -236,6 +236,9 @@ var Connection = Class.extend({
all: function (sqlTree, callback) {
var self = this;
var sqlAndValues = this.driver.getSqlFromSqlTree(sqlTree);
+ if (self.opts.trace) {
+ console.log(sqlAndValues.sql, sqlAndValues.values);
+ }
this._runSqlAll(sqlAndValues.sql, sqlAndValues.values, function (err, data) {
if (err) {
callback(err);

0 comments on commit 6c47baa

Please sign in to comment.