Skip to content

Commit af4a195

Browse files
committed
Debug
1 parent f87dbd6 commit af4a195

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/active_record/connection_adapters/sqlserver/database_statements.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def raw_execute(sql, name, async: false, allow_retry: false, materialize_transac
3232

3333
def internal_exec_query(sql, name = "SQL", binds = [], prepare: false, async: false)
3434
result = nil
35+
36+
puts "******** SQL: #{sql}"
37+
3538
sql = transform_query(sql)
3639

3740
check_if_write_query(sql)
@@ -395,6 +398,8 @@ def exclude_output_inserted_id_sql_type(pk, exclude_output_inserted)
395398
def query_requires_identity_insert?(sql)
396399
return false unless insert_sql?(sql)
397400

401+
# binding.pry if $DEBUG
402+
398403
raw_table_name = get_raw_table_name(sql)
399404
id_column = identity_columns(raw_table_name).first
400405

0 commit comments

Comments
 (0)