Permalink
Browse files

fixed runSqlFromFile self undefined exception.

  • Loading branch information...
1 parent b449b19 commit bb614f2402cf6873ad5b9c303699794423823c34 taoyuan committed Jul 22, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/connection.js
View
@@ -316,6 +316,7 @@ var Connection = Class.extend({
// filename, callback
runSqlFromFile: over([
[over.string, over.arrayOptionalWithDefault(null), over.callbackOptional, function(filename, params, callback) {
+ var self = this;
this._readSqlFile(filename, function(err, sql) {
if (err) {
return callback(err);

0 comments on commit bb614f2

Please sign in to comment.