Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit 32021552125544d7cc2f548b1684a9f476845d58 1 parent 94a0592
@dhh dhh authored
View
8 activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -293,6 +293,14 @@ def quote_string(string)
string.gsub(/\'/, "''")
end
+ def quoted_true
+ "1"
+ end
+
+ def quoted_false
+ "0"
+ end
+
def quote_column_name(name)
"[#{name}]"
end
Please sign in to comment.
Something went wrong with that request. Please try again.