Fix typos

This commit is contained in:
Raymond Feng 2013-07-15 10:38:54 -07:00
parent ef671825ff
commit 12c28ce363
3 changed files with 3 additions and 3 deletions

View File

@ -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 = {};

View File

@ -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;
} }

View File

@ -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');