Skip to content

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
@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