(type, value)
| 353 | } |
| 354 | |
| 355 | applyParsers(type, value) { |
| 356 | if (type.includes('(')) { |
| 357 | // Remove the length part |
| 358 | type = type.substr(0, type.indexOf('(')); |
| 359 | } |
| 360 | type = type.replace('UNSIGNED', '').replace('ZEROFILL', ''); |
| 361 | type = type.trim().toUpperCase(); |
| 362 | const parse = parserStore.get(type); |
| 363 | |
| 364 | if (value !== null && parse) { |
| 365 | return parse(value, { timezone: this.sequelize.options.timezone }); |
| 366 | } |
| 367 | return value; |
| 368 | } |
| 369 | |
| 370 | formatError(err, errStack) { |
| 371 |
no test coverage detected