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

Commit b31f8faa by Sascha Depold

use the new abstract query

1 parent 74bb3b67
Showing with 3 additions and 1 deletions
var Utils = require("../../utils") var Utils = require("../../utils")
, AbstractQuery = require('../abstract/query')
module.exports = (function() { module.exports = (function() {
var Query = function(client, sequelize, callee, options) { var Query = function(client, sequelize, callee, options) {
...@@ -25,7 +26,8 @@ module.exports = (function() { ...@@ -25,7 +26,8 @@ module.exports = (function() {
this.bindClientFunction = function(err) { onFailure.call(self, err) } this.bindClientFunction = function(err) { onFailure.call(self, err) }
} }
Utils._.extend(Query.prototype, require("../query").prototype)
Utils.inherit(Query, require('../abstract/query'))
Query.prototype.run = function(sql) { Query.prototype.run = function(sql) {
var self = this var self = this
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!