不要怂,就是干,撸起袖子干!

Commit 3b398c38 by Sascha Depold

debugging

1 parent 7197c034
Showing with 3 additions and 1 deletions
...@@ -37,9 +37,10 @@ Transaction.prototype.rollback = function() { ...@@ -37,9 +37,10 @@ Transaction.prototype.rollback = function() {
} }
Transaction.prototype.prepareEnvironment = function(callback) { Transaction.prototype.prepareEnvironment = function(callback) {
var self = this var self = this
this.setIsolationLevel(function() { this.setIsolationLevel(function() {
console.log('aha!')
self.setAutocommit(function() { self.setAutocommit(function() {
callback() callback()
}) })
...@@ -60,4 +61,5 @@ Transaction.prototype.setIsolationLevel = function(callback) { ...@@ -60,4 +61,5 @@ Transaction.prototype.setIsolationLevel = function(callback) {
.getQueryInterface() .getQueryInterface()
.setIsolationLevel(this, this.options.isolationLevel) .setIsolationLevel(this, this.options.isolationLevel)
.success(callback) .success(callback)
.error(function(err) { console.log(err) })
} }
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!