Merge pull request #47709 from sampatbadhe/patch-4
This commit is contained in:
commit
05c3f84a51
@ -174,7 +174,7 @@
|
||||
end
|
||||
```
|
||||
|
||||
Then register the config in an inializer:
|
||||
Then register the config in an initializer:
|
||||
|
||||
```ruby
|
||||
ActiveRecord::DatabaseConfigurations.register_db_config_handler do |env_name, name, url, config|
|
||||
|
@ -136,7 +136,7 @@ def uncached_comment(connection)
|
||||
def escape_sql_comment(content)
|
||||
# Sanitize a string to appear within a SQL comment
|
||||
# For compatibility, this also surrounding "/*+", "/*", and "*/"
|
||||
# charcacters, possibly with single surrounding space.
|
||||
# characters, possibly with single surrounding space.
|
||||
# Then follows that by replacing any internal "*/" or "/ *" with
|
||||
# "* /" or "/ *"
|
||||
comment = content.to_s.dup
|
||||
|
Loading…
Reference in New Issue
Block a user