Fix typos
This commit is contained in:
parent
ef671825ff
commit
12c28ce363
|
@ -40,7 +40,7 @@ function DataAccessObject() {
|
||||||
|
|
||||||
|
|
||||||
DataAccessObject._forDB = function (data) {
|
DataAccessObject._forDB = function (data) {
|
||||||
if(!this.schema.isRelational()) {
|
if(!(this.schema.isRelational && this.schema.isRelational())) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
var res = {};
|
var res = {};
|
||||||
|
|
|
@ -1271,7 +1271,7 @@ DataSource.prototype.defineOperation = function (name, options, fn) {
|
||||||
this._operations[name] = options;
|
this._operations[name] = options;
|
||||||
}
|
}
|
||||||
|
|
||||||
DataSource.prototype.isRational = function() {
|
DataSource.prototype.isRelational = function() {
|
||||||
return this.adapter && this.adapter.relational;
|
return this.adapter && this.adapter.relational;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ module.exports = BaseSQL;
|
||||||
function BaseSQL() {
|
function BaseSQL() {
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseSQL.prototype.rational = true;
|
BaseSQL.prototype.relational = true;
|
||||||
|
|
||||||
BaseSQL.prototype.query = function () {
|
BaseSQL.prototype.query = function () {
|
||||||
throw new Error('query method should be declared in adapter');
|
throw new Error('query method should be declared in adapter');
|
||||||
|
|
Loading…
Reference in New Issue