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:
parent
94a05920e1
commit
3202155212
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue