@@ -93,39 +93,41 @@ class SchemaDumperTestSQLServer < ActiveRecord::TestCase
9393    assert_line  :binary_col ,                  type : "binary" 
9494
9595    # Our type methods. 
96-     _ ( columns [ "real_col" ] . sql_type ) . must_equal           "real" 
97-     _ ( columns [ "money_col" ] . sql_type ) . must_equal          "money" 
98-     _ ( columns [ "smalldatetime_col" ] . sql_type ) . must_equal  "smalldatetime" 
99-     _ ( columns [ "datetime2_col" ] . sql_type ) . must_equal      "datetime2(7)" 
100-     _ ( columns [ "datetimeoffset" ] . sql_type ) . must_equal     "datetimeoffset(7)" 
101-     _ ( columns [ "smallmoney_col" ] . sql_type ) . must_equal     "smallmoney" 
102-     _ ( columns [ "char_col" ] . sql_type ) . must_equal           "char(1)" 
103-     _ ( columns [ "varchar_col" ] . sql_type ) . must_equal        "varchar(8000)" 
104-     _ ( columns [ "text_basic_col" ] . sql_type ) . must_equal     "text" 
105-     _ ( columns [ "nchar_col" ] . sql_type ) . must_equal          "nchar(1)" 
106-     _ ( columns [ "ntext_col" ] . sql_type ) . must_equal          "ntext" 
107-     _ ( columns [ "binary_basic_col" ] . sql_type ) . must_equal   "binary(1)" 
108-     _ ( columns [ "varbinary_col" ] . sql_type ) . must_equal      "varbinary(8000)" 
109-     _ ( columns [ "uuid_col" ] . sql_type ) . must_equal           "uniqueidentifier" 
110-     _ ( columns [ "sstimestamp_col" ] . sql_type ) . must_equal    "timestamp" 
111-     _ ( columns [ "json_col" ] . sql_type ) . must_equal           "nvarchar(max)" 
112- 
113-     assert_line  :real_col ,           type : "real" 
114-     assert_line  :money_col ,          type : "money" ,                       precision : 19 ,   scale : 4 
115-     assert_line  :smalldatetime_col ,  type : "smalldatetime" 
116-     assert_line  :datetime2_col ,      type : "datetime" ,                    precision : 7 
117-     assert_line  :datetimeoffset ,     type : "datetimeoffset" ,              precision : 7 
118-     assert_line  :smallmoney_col ,     type : "smallmoney" ,                  precision : 10 ,   scale : 4 
119-     assert_line  :char_col ,           type : "char" ,            limit : 1 
120-     assert_line  :varchar_col ,        type : "varchar" 
121-     assert_line  :text_basic_col ,     type : "text_basic" 
122-     assert_line  :nchar_col ,          type : "nchar" ,           limit : 1 
123-     assert_line  :ntext_col ,          type : "ntext" 
124-     assert_line  :binary_basic_col ,   type : "binary_basic" ,    limit : 1 
125-     assert_line  :varbinary_col ,      type : "varbinary" 
126-     assert_line  :uuid_col ,           type : "uuid" 
127-     assert_line  :sstimestamp_col ,    type : "ss_timestamp" ,                                            null : false 
128-     assert_line  :json_col ,           type : "text" 
96+     _ ( columns [ "real_col" ] . sql_type ) . must_equal             "real" 
97+     _ ( columns [ "money_col" ] . sql_type ) . must_equal            "money" 
98+     _ ( columns [ "smalldatetime_col" ] . sql_type ) . must_equal    "smalldatetime" 
99+     _ ( columns [ "datetime2_col" ] . sql_type ) . must_equal        "datetime2(7)" 
100+     _ ( columns [ "datetimeoffset" ] . sql_type ) . must_equal       "datetimeoffset(7)" 
101+     _ ( columns [ "smallmoney_col" ] . sql_type ) . must_equal       "smallmoney" 
102+     _ ( columns [ "char_col" ] . sql_type ) . must_equal             "char(1)" 
103+     _ ( columns [ "varchar_col" ] . sql_type ) . must_equal          "varchar(8000)" 
104+     _ ( columns [ "text_basic_col" ] . sql_type ) . must_equal       "text" 
105+     _ ( columns [ "nchar_col" ] . sql_type ) . must_equal            "nchar(1)" 
106+     _ ( columns [ "ntext_col" ] . sql_type ) . must_equal            "ntext" 
107+     _ ( columns [ "binary_basic_col" ] . sql_type ) . must_equal     "binary(1)" 
108+     _ ( columns [ "binary_basic_16_col" ] . sql_type ) . must_equal  "binary(16)" 
109+     _ ( columns [ "varbinary_col" ] . sql_type ) . must_equal        "varbinary(8000)" 
110+     _ ( columns [ "uuid_col" ] . sql_type ) . must_equal             "uniqueidentifier" 
111+     _ ( columns [ "sstimestamp_col" ] . sql_type ) . must_equal      "timestamp" 
112+     _ ( columns [ "json_col" ] . sql_type ) . must_equal             "nvarchar(max)" 
113+ 
114+     assert_line  :real_col ,             type : "real" 
115+     assert_line  :money_col ,            type : "money" ,                       precision : 19 ,   scale : 4 
116+     assert_line  :smalldatetime_col ,    type : "smalldatetime" 
117+     assert_line  :datetime2_col ,        type : "datetime" ,                    precision : 7 
118+     assert_line  :datetimeoffset ,       type : "datetimeoffset" ,              precision : 7 
119+     assert_line  :smallmoney_col ,       type : "smallmoney" ,                  precision : 10 ,   scale : 4 
120+     assert_line  :char_col ,             type : "char" ,            limit : 1 
121+     assert_line  :varchar_col ,          type : "varchar" 
122+     assert_line  :text_basic_col ,       type : "text_basic" 
123+     assert_line  :nchar_col ,            type : "nchar" ,           limit : 1 
124+     assert_line  :ntext_col ,            type : "ntext" 
125+     assert_line  :binary_basic_col ,     type : "binary_basic" ,    limit : 1 
126+     assert_line  :binary_basic_16_col ,  type : "binary_basic" ,    limit : 16 
127+     assert_line  :varbinary_col ,        type : "varbinary" 
128+     assert_line  :uuid_col ,             type : "uuid" 
129+     assert_line  :sstimestamp_col ,      type : "ss_timestamp" ,                                            null : false 
130+     assert_line  :json_col ,             type : "text" 
129131  end 
130132
131133  it  "dump column collation"  do 
0 commit comments