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.
1 parent 6bc6475 commit f03e4c6Copy full SHA for f03e4c6
lib/active_record/connection_adapters/sqlserver/utils.rb
@@ -109,7 +109,7 @@ def parse_raw_name
109
end
110
111
def quote(part)
112
- (/\A\[.*\]\z/.match?(part)) ? part : "[#{part.to_s.gsub("]", "]]")}]"
+ /\A\[.*\]\z/.match?(part) ? part : "[#{part.to_s.gsub("]", "]]")}]"
113
114
115
def unquote(part)
@@ -126,7 +126,7 @@ def unquote(part)
126
extend self
127
128
def quote_string(s)
129
- s.to_s.gsub('\\'', "''")
+ s.to_s.gsub("'", "''")
130
131
132
def quote_string_single(s)
@@ -142,7 +142,7 @@ def quoted_raw(name)
142
143
144
def unquote_string(s)
145
- s.to_s.gsub('\\'\\'', "'")
+ s.to_s.gsub("''", "'")
146
147
148
def extract_identifiers(name)
0 commit comments