module ActiveRecord::ConnectionAdapters::SQLServer::Utils

def extract_identifiers(name)

def extract_identifiers(name)
  SQLServer::Utils::Name.new(name)
end

def quote_string(s)

def quote_string(s)
  s.to_s.gsub /\'/, "''"
end

def quote_string_single(s)

def quote_string_single(s)
  "'#{quote_string(s)}'"
end

def quote_string_single_national(s)

def quote_string_single_national(s)
  "#{QUOTED_STRING_PREFIX}'#{quote_string(s)}'"
end

def quoted_raw(name)

def quoted_raw(name)
  SQLServer::Utils::Name.new(name).quoted_raw
end

def unquote_string(s)

def unquote_string(s)
  s.to_s.gsub(/\'\'/, "'")
end