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

Commit 08e0ca7c by Jan Aagaard Meier

A small step closer to making schema.test.js 'should support including date fields' work for sqlite

1 parent 9430706b
......@@ -651,7 +651,7 @@ module.exports = (function() {
var hasJoin = false
, tableNames = { };
tableNames[this.tableName] = true;
tableNames[this.getTableName()] = true;
options = optClone(options || {});
if (typeof options === 'object') {
......@@ -722,7 +722,7 @@ module.exports = (function() {
, keysLength = keys.length
, tableNames = { };
tableNames[this.tableName] = true;
tableNames[this.getTableName()] = true;
// options is not a hash but an id
if (typeof options === 'number') {
......@@ -1738,7 +1738,7 @@ module.exports = (function() {
throw new Error('Include malformed. Expected attributes: model');
}
tableNames[include.model.tableName] = true;
tableNames[include.model.getTableName()] = true;
if (include.hasOwnProperty('attributes')) {
include.originalAttributes = include.attributes.slice(0);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!