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

Commit 0bc30423 by ivo-stefchev Committed by Jan Aagaard Meier

add default value for tableTypes in sqlite (#5755) (#5931)

1 parent f274ebaf
Showing with 1 additions and 1 deletions
......@@ -144,7 +144,7 @@ Query.prototype.run = function(sql, parameters) {
}
var tableName = model.getTableName().toString().replace(/`/g, '')
, tableTypes = columnTypes[tableName];
, tableTypes = columnTypes[tableName] || {};
if (tableTypes && !(name in tableTypes)) {
// The column is aliased
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!