Repository navigation
Conversation
| if (!(this instanceof DATEONLY)) return new DATEONLY(); | ||
| } | ||
| util.inherits(DATEONLY, ABSTRACT); | ||
| inherits(DATEONLY, ABSTRACT); |
There was a problem hiding this comment.
Is this needed for the JSON to work? Could you do this in a seperate PR? The commits will get squashed
There was a problem hiding this comment.
No, it's not needed at all, I've simply noticed it hadn't been changed like other inherits calls. I've removed its commit from this PR.
|
@arcanis why did you change the tests to self-answer: oh duh, because you don't have the correct answers for Sqlite, nevermind :) |
Based on sqlite PR: sequelize#6500
|
I have no use for this PR any longer, should I close it? @mickhansen |
|
@arcanis May I continue your work? |
|
@rokoroku For sure, go for it :) I'm not using sequelize right now, so I can't really champion this feature anymore. |
|
New implementation continued in #7094 |
Pull Request check-list
npm run testornpm run test-DIALECTpass with this change (including linting)?Futurein the changelog?Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?Description of change
Partial fix for #4873 (cc @mickhansen) - only add JSON support to SQLite, because I don't use MySQL and MSSQL, and I feel much less confident writing tests for these environments (especially since I won't be able to see it myself if something is wrong).
I haven't been able to fix a test, because I'm not familiar enough with how
CREATE INDEXqueries should look like 😞 Some help on this would be great here.I wasn't sure if JSONB should also be implemented or if there was too much differences for it to matter, so I figured I should first submit this PR and ask for your input.
Due to the previous point, I splitted some tests in order for a dialect to be able to run JSON-related tests but not JSONB-related tests nor ARRAY-related tests.