mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
1 changed files with 8 additions and 0 deletions
|
@ -293,6 +293,14 @@ module ActiveRecord
|
|||
string.gsub(/\'/, "''")
|
||||
end
|
||||
|
||||
def quoted_true
|
||||
"1"
|
||||
end
|
||||
|
||||
def quoted_false
|
||||
"0"
|
||||
end
|
||||
|
||||
def quote_column_name(name)
|
||||
"[#{name}]"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue