Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated run() method for mysql.js to match postgres.js implementation

  • Loading branch information...
commit 58782dc2aa5b0ff22aae838403d8913b1b2ce1e8 1 parent 66106d5
John Atten xivSolutions authored
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/mysql.js
10 lib/mysql.js
View
@@ -46,8 +46,11 @@ var MySQL = function(credentials){
});
};
- this.run = function(sql,params) {
- return new Query(sql,params, this);
+
+ this.run = function(sql,params, callback) {
+ this.execute(sql, params, function(err, results, db) {
+ callback(err, results);
+ });
};
this.loadTables = function(callback) {
@@ -60,7 +63,8 @@ var MySQL = function(credentials){
callback(null,self);
});
};
-var _translateType = function(typeName) {
+
+ var _translateType = function(typeName) {
var _result = typeName;
switch(typeName){
Please sign in to comment.
Something went wrong with that request. Please try again.