-
Notifications
You must be signed in to change notification settings - Fork 564
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
Undefined Method Error Caused By Active? #707
Comments
The tiny_tds lib might return false on execute when the call fails. This caused exceptions when active? is called after the connection was lost. fixes rails-sqlserver#707
Closing this via #818, #825 and rails-sqlserver/tiny_tds/pull/469. |
@wpolicarpo Is there any chance of getting the two PRs you linked above backported to 5.x? EDIT: So it seems that the |
@taylorthurlow I backported it already. Problem is that |
Using version 5.1.6, activerecord 5.1.7
I tracked down the error to these lines. Starting from here:
Raw connection is then called:
I believe the error is caused because
@connection.execute(sql)
can potentially return false. This causes theundefined method do for false class error
. But I have not confirmed it.Stacktrace:
The text was updated successfully, but these errors were encountered: