Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Jul 17, 2024
1 parent f87dbd6 commit af4a195
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def raw_execute(sql, name, async: false, allow_retry: false, materialize_transac

def internal_exec_query(sql, name = "SQL", binds = [], prepare: false, async: false)
result = nil

puts "******** SQL: #{sql}"

sql = transform_query(sql)

check_if_write_query(sql)
Expand Down Expand Up @@ -395,6 +398,8 @@ def exclude_output_inserted_id_sql_type(pk, exclude_output_inserted)
def query_requires_identity_insert?(sql)
return false unless insert_sql?(sql)

# binding.pry if $DEBUG

raw_table_name = get_raw_table_name(sql)
id_column = identity_columns(raw_table_name).first

Expand Down

0 comments on commit af4a195

Please sign in to comment.