Skip to content

Conversation

@aidanharan
Copy link
Contributor

@aidanharan aidanharan commented Apr 27, 2021

Whenever we call @connection.execute we should check if the return value is false, which indicates that the connection has failed. Previously we were only checking the return value in raw_connection_do but I see no reason why we should not also check it in raw_connection_run and execute_procedure.

This issue was brought up by @mgrunberg in #903 (comment)

References:

@aidanharan aidanharan changed the title Always check if TinyTDS result is false Rails 6.1: Always check if TinyTDS connection failed Apr 27, 2021
@aidanharan aidanharan changed the title Rails 6.1: Always check if TinyTDS connection failed Rails 6.1: Check if TinyTDS connection failed when using raw_connection_run/execute_procedure Apr 27, 2021
@aidanharan aidanharan force-pushed the check-tinytds-results-for-false branch from 27e1ed1 to 7222e4b Compare April 27, 2021 14:54
@aidanharan aidanharan marked this pull request as ready for review April 27, 2021 15:39
@aidanharan
Copy link
Contributor Author

Closing as similiar changes have been made in #903

@aidanharan aidanharan closed this Apr 28, 2021
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