mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
stop running exec_sql through active record
this avoids double logging
This commit is contained in:
parent
b778b19318
commit
1f044350f6
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ class ActiveRecord::Base
|
|||
def self.exec_sql(*args)
|
||||
conn = ActiveRecord::Base.connection
|
||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
||||
conn.execute(sql)
|
||||
conn.raw_connection.exec(sql)
|
||||
end
|
||||
|
||||
def self.exec_sql_row_count(*args)
|
||||
|
|
Loading…
Reference in a new issue