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

Fix the regex that extract mismatched foreign key information #35299

Merged
merged 1 commit into from
Feb 16, 2019

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Feb 16, 2019

The CI failure for test_errors_for_bigint_fks_on_integer_pk_table is
due to the poor regex that extract all `(\w+)` like parts from
the message (:foreign_key should be "old_car_id", but "engines"):

https://travis-ci.org/rails/rails/jobs/494123455#L1703

I've improved the regex more strictly and have more exercised mismatched
foreign key tests.

Fixes #35294

The CI failure for `test_errors_for_bigint_fks_on_integer_pk_table` is
due to the poor regex that extract all ``` `(\w+)` ``` like parts from
the message (`:foreign_key` should be `"old_car_id"`, but `"engines"`):

https://travis-ci.org/rails/rails/jobs/494123455#L1703

I've improved the regex more strictly and have more exercised mismatched
foreign key tests.

Fixes rails#35294
@kamipo kamipo merged commit 3ac195c into rails:master Feb 16, 2019
kamipo added a commit that referenced this pull request Feb 16, 2019
Fix the regex that extract mismatched foreign key information
@kamipo kamipo deleted the fix_mismatched_foreign_key branch February 16, 2019 16:58
kamipo added a commit that referenced this pull request Feb 16, 2019
Fix the regex that extract mismatched foreign key information
eileencodes pushed a commit to eileencodes/rails that referenced this pull request Mar 9, 2019
Fix the regex that extract mismatched foreign key information

Backported from 5-2-stable to fix the maria db failure seen
https://travis-ci.org/rails/rails/jobs/503455456
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

1 participant