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

aaded materialize_transactions guard to connection uses. #1

Merged
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def default_insert_value(column)
# === SQLServer Specific ======================================== #

def execute_procedure(proc_name, *variables)
materialize_transactions

vars = if variables.any? && variables.first.is_a?(Hash)
variables.first.map { |k, v| "@#{k} = #{quote(v)}" }
else
Expand Down Expand Up @@ -268,6 +270,8 @@ def set_identity_insert(table_name, enable = true)
# === SQLServer Specific (Executing) ============================ #

def do_execute(sql, name = 'SQL')
materialize_transactions

log(sql, name) { raw_connection_do(sql) }
end

Expand Down Expand Up @@ -378,6 +382,8 @@ def identity_columns(table_name)
# === SQLServer Specific (Selecting) ============================ #

def raw_select(sql, name = 'SQL', binds = [], options = {})
materialize_transactions

log(sql, name, binds) { _raw_select(sql, options) }
end

Expand Down