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 creation of stored procedures that contain insert statements #1088

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Sep 19, 2023

When creating a stored procedure that contained an insert statements, the SQL was being incorrectly flagged as a insert statement. We should check the start of the string to find if an SQL statement is an insert, rather than each line of the string. Issue introduced in Rails 7.0 branch by #988

Fixes #1087

@aidanharan aidanharan marked this pull request as ready for review September 19, 2023 13:26
@aidanharan aidanharan merged commit 6f52a53 into 7-0-stable Sep 19, 2023
0 of 6 checks passed
@aidanharan aidanharan deleted the migration-stored-procedure-contains-insert branch September 19, 2023 13:27
lavika pushed a commit to lavika/activerecord-sqlserver-adapter that referenced this pull request Sep 26, 2023
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.

1 participant