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

Commit 20a1f427 by Jan Aagaard Meier

internal(datatypes) Support lower case type names in SQLite. Fixes #5482

1 parent 6fb971f9
Showing with 5 additions and 2 deletions
# Next
- [FIXED] Support lower case type names in SQLite [#5482](https://github.com/sequelize/sequelize/issues/5482)
# 3.20.0 # 3.20.0
- [ADDED] rejectOnEmpty mode [#272](https://github.com/sequelize/sequelize/issues/272) [#5480](https://github.com/sequelize/sequelize/issues/5480) - [ADDED] rejectOnEmpty mode [#272](https://github.com/sequelize/sequelize/issues/272) [#5480](https://github.com/sequelize/sequelize/issues/5480)
- [ADDED] `beforeCount` hook [#5209](https://github.com/sequelize/sequelize/pull/5209) - [ADDED] `beforeCount` hook [#5209](https://github.com/sequelize/sequelize/pull/5209)
......
...@@ -86,7 +86,7 @@ Query.prototype.run = function(sql, parameters) { ...@@ -86,7 +86,7 @@ Query.prototype.run = function(sql, parameters) {
//do we need benchmark for this query execution //do we need benchmark for this query execution
var benchmark = this.sequelize.options.benchmark || this.options.benchmark; var benchmark = this.sequelize.options.benchmark || this.options.benchmark;
if (!benchmark) { if (!benchmark) {
this.sequelize.log('Executing (' + (this.database.uuid || 'default') + '): ' + this.sql, this.options); this.sequelize.log('Executing (' + (this.database.uuid || 'default') + '): ' + this.sql, this.options);
} else { } else {
...@@ -163,7 +163,7 @@ Query.prototype.run = function(sql, parameters) { ...@@ -163,7 +163,7 @@ Query.prototype.run = function(sql, parameters) {
type = type.substr(0, type.indexOf('(')); type = type.substr(0, type.indexOf('('));
} }
type = type.replace('UNSIGNED', '').replace('ZEROFILL', ''); type = type.replace('UNSIGNED', '').replace('ZEROFILL', '');
type = type.trim(); type = type.trim().toUpperCase();
var parse = parserStore.get(type); var parse = parserStore.get(type);
if (value !== null && parse) { if (value !== null && parse) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!