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

upgrading for rails 7 #2

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
upgrading gem to be compatible with rails 7 fix connection variable i…
…ssue
pankajkumar1104 committed Mar 18, 2024
commit 1c6b895e49fa5926d092aabd84ba905117f380cc
1 change: 1 addition & 0 deletions lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
@@ -80,6 +80,7 @@ def initialize(connection, logger, config, database_metadata)
configure_time_options(connection)
super(connection, logger, config)
@database_metadata = database_metadata
@connection = connection
end

# Returns the human-readable name of the adapter.
4 changes: 4 additions & 0 deletions lib/odbc_adapter/database_statements.rb
Original file line number Diff line number Diff line change
@@ -17,6 +17,10 @@ def execute(sql, name = nil, binds = [])
end
end

def internal_exec_query(sql, name = "SQL", binds = [], prepare: false, async: false) # :nodoc:
exec_query(sql, name, binds, prepare: prepare)
end

# Executes +sql+ statement in the context of this connection using
# +binds+ as the bind substitutes. +name+ is logged along with
# the executed +sql+ statement.