Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self.use_transactional_tests = false for all test cases #23

Closed
wants to merge 1 commit into from
Closed

self.use_transactional_tests = false for all test cases #23

wants to merge 1 commit into from

Conversation

yahonda
Copy link
Member

@yahonda yahonda commented Sep 8, 2021

Active Record test case depends on database savepoint feature to restore the database status by default as self.use_transactional_tests = true

As of TiDB 5.2, it does not support savepoint feature yet then
changing self.use_transactional_tests = false for all test cases until it is
implemented.

Refer
pingcap/tidb#6840

Active Record test case depends on database savepoint feature
to restore the database status by default as `self.use_transactional_tests = true`

As of TiDB 5.2, it does not support savepoint feature yet then
changing `self.use_transactional_tests = false` for all test cases until it is
implemented.

Refer
pingcap/tidb#6840
@yahonda
Copy link
Member Author

yahonda commented Sep 8, 2021

Follow up #22 (comment)

@yahonda
Copy link
Member Author

yahonda commented Sep 8, 2021

Opened as a draft pull request since I am not sure this code is enough yet.

@yahonda
Copy link
Member Author

yahonda commented Sep 13, 2021

Once this pull request is green and merged, this line can be reverted https://github.com/pingcap/rails/blob/1f68df160a11fd7ed7e52eed898cb47bff3b3751/activerecord/test/cases/test_case.rb#L23

@yahonda
Copy link
Member Author

yahonda commented Nov 29, 2022

Since TiDB 6.2 supports savepoint that does not require setting self.use_transactional_tests = false, I'm going to close this pull request.

@yahonda yahonda closed this Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant