SQL Server needs to quote booleans just like MySQL 1/0

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2586 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson 2005-10-14 16:10:53 +00:00
parent 94a05920e1
commit 3202155212
1 changed files with 8 additions and 0 deletions

View File

@ -293,6 +293,14 @@ module ActiveRecord
string.gsub(/\'/, "''") string.gsub(/\'/, "''")
end end
def quoted_true
"1"
end
def quoted_false
"0"
end
def quote_column_name(name) def quote_column_name(name)
"[#{name}]" "[#{name}]"
end end