mirror of
https://github.com/github/rails.git
synced 2026-01-27 15:28:00 -05:00
SQLServer: don't report limits for unsupported field types. Closes #2835.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
*SVN*
|
||||
|
||||
* SQLServer: don't report limits for unsupported field types. #2835 [Ryan Tomayko]
|
||||
|
||||
* Include the Enumerable module in ActiveRecord::Errors. [Rick Bradley <rick@rickbradley.com>]
|
||||
|
||||
* Add :group option, correspond to GROUP BY, to the find method and to the has_many association. #2818 [rubyonrails@atyp.de]
|
||||
|
||||
@@ -52,6 +52,8 @@ module ActiveRecord
|
||||
@identity = is_identity
|
||||
@is_special = sql_type =~ /text|ntext|image/i ? true : false
|
||||
@scale = scale_value
|
||||
# SQL Server only supports limits on *char and float types
|
||||
@limit = nil unless @type == :float or @type == :string
|
||||
end
|
||||
|
||||
def simplified_type(field_type)
|
||||
|
||||
Reference in New Issue
Block a user