Repository navigation
fix: sqlite find out deleteAt items problem - #8204
ghostpanda wants to merge 1 commit into
Conversation
sqlite 1s 内可以查询已经删除的数据 `deleted_at` > CURRENT_TIMESTAMP `deleted_at` > 2017-08-26 16:36:19 `deleted_at` > now `deleted_at` > 2017-08-26 16:36:19.836 +00:00
|
@ghostpanda, thanks for your PR! By analyzing the history of the files in this pull request, we identified @sushantdhiman, @felixfbecker and @janmeier to be potential reviewers. |
janmeier
left a comment
There was a problem hiding this comment.
Looks good, needs a test to prevent regressions
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂 |
|
There is already a testcase for this scenario at https://github.com/sequelize/sequelize/blob/master/test/integration/instance.test.js#L1685 The reason why it did not fail is the use of the Sinon fake timer. Compare the generated queries:
As the Date returned by the fake timer is so far in the past, a small difference in the timing of the sqlite db and node does not matter here. Is it possible to avoid the fake timer for this one test case? |
|
@apricote Calling |
sqlite 1s 内可以查询已经删除的数据
deleted_at> CURRENT_TIMESTAMPdeleted_at> 2017-08-26 16:36:19deleted_at> nowdeleted_at> 2017-08-26 16:36:19.836 +00:00Pull Request check-list
Please make sure to review and check all of these items:
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change