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

[Tests only] Expand trigger populated PK test case to run against more DBs #50794

Merged

Conversation

nvasilevski
Copy link
Contributor

Follow-up for #50783

I realized that I unnecessarily limited one of the tests to postgresql while the fix should be applicable to any database that supports RETURNING statement.

Sadly I couldn't come up with a proper setup for sqlite since it looks like there is no way of updating NEW record columns before insert in a trigger. So if someone has ideas on how to setup an sqlite trigger to generate id column value before insert - the test case can be tested against sqlite. But for now it technically means we will be testing it on MariaDB in addition to postgresql

@nvasilevski nvasilevski force-pushed the test-trigger-pk-population-against-more-dbs branch from 1427228 to 2457067 Compare January 18, 2024 17:28
@byroot byroot merged commit 0a30d2b into rails:main Jan 18, 2024
3 of 4 checks passed
@nvasilevski nvasilevski deleted the test-trigger-pk-population-against-more-dbs branch January 18, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants