Skip to content

Commit

Permalink
Remove duplicated statement that was already happening in raw_execute
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelfranca committed Aug 28, 2021
1 parent 5519921 commit a1ac107
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -42,10 +42,6 @@ def execute(sql, name = nil, async: false)
sql = transform_query(sql)
check_if_write_query(sql)

# make sure we carry over any changes to ActiveRecord.default_timezone that have been
# made since we established the connection
@connection.query_options[:database_timezone] = ActiveRecord.default_timezone

raw_execute(sql, name, async: async)
end

Expand Down

0 comments on commit a1ac107

Please sign in to comment.