(type, value)
| 333 | } |
| 334 | |
| 335 | applyParsers(type, value) { |
| 336 | if (type.includes('(')) { |
| 337 | // Remove the length part |
| 338 | type = type.substr(0, type.indexOf('(')); |
| 339 | } |
| 340 | type = type.replace('UNSIGNED', '').replace('ZEROFILL', ''); |
| 341 | type = type.trim().toUpperCase(); |
| 342 | const parse = parserStore.get(type); |
| 343 | |
| 344 | if (value !== null && parse) { |
| 345 | return parse(value, { timezone: this.sequelize.options.timezone }); |
| 346 | } |
| 347 | return value; |
| 348 | } |
| 349 | |
| 350 | formatError(err, errStack) { |
| 351 |
no test coverage detected