We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
sanitize_as_sql_comment
1 parent 546ca81 commit e9fa6faCopy full SHA for e9fa6fa
activerecord/lib/active_record/connection_adapters/abstract/quoting.rb
@@ -211,7 +211,7 @@ def sanitize_as_sql_comment(value) # :nodoc:
211
# Sanitize a string to appear within a SQL comment
212
# For compatibility, this also surrounding "/*+", "/*", and "*/"
213
# charcacters, possibly with single surrounding space.
214
- # Then follows that by replacing any internal "*/" or "/ *" with
+ # Then follows that by replacing any internal "*/" or "/*" with
215
# "* /" or "/ *"
216
comment = value.to_s.dup
217
comment.gsub!(%r{\A\s*/\*\+?\s?|\s?\*/\s*\Z}, "")
0 commit comments