mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 02:03:40 +08:00
stop running exec_sql through active record
this avoids double logging
This commit is contained in:
parent
b778b19318
commit
1f044350f6
|
@ -4,7 +4,7 @@ class ActiveRecord::Base
|
||||||
def self.exec_sql(*args)
|
def self.exec_sql(*args)
|
||||||
conn = ActiveRecord::Base.connection
|
conn = ActiveRecord::Base.connection
|
||||||
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
sql = ActiveRecord::Base.send(:sanitize_sql_array, args)
|
||||||
conn.execute(sql)
|
conn.raw_connection.exec(sql)
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.exec_sql_row_count(*args)
|
def self.exec_sql_row_count(*args)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user