Merge pull request #47709 from sampatbadhe/patch-4

This commit is contained in:
Vipul A M 2023-03-18 19:30:34 +05:30 committed by GitHub
commit 05c3f84a51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

@ -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