mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add "SCHEMA" to the query in configure_connection
like as other adapters
This makes to be able to ignore the query in `assert_queries` even if accidentally reconnected a connection. https://buildkite.com/rails/rails/builds/61917#4c49187a-3173-4d5c-8a8d-d65768f5bfc9/1000-1799
This commit is contained in:
parent
12bc759325
commit
1eb5cc13a2
1 changed files with 1 additions and 1 deletions
|
@ -737,7 +737,7 @@ module ActiveRecord
|
|||
end.compact.join(", ")
|
||||
|
||||
# ...and send them all in one query
|
||||
execute "SET #{encoding} #{sql_mode_assignment} #{variable_assignments}"
|
||||
execute("SET #{encoding} #{sql_mode_assignment} #{variable_assignments}", "SCHEMA")
|
||||
end
|
||||
|
||||
def column_definitions(table_name) # :nodoc:
|
||||
|
|
Loading…
Reference in a new issue