File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -290,8 +290,15 @@ def test_data_type_of_network_address_types
290290 end if ar_version ( '4.0' )
291291
292292 def test_data_type_of_bit_string_types
293- assert_equal :string , @first_bit_string . column_for_attribute ( :bit_string ) . type
294- assert_equal :string , @first_bit_string . column_for_attribute ( :bit_string_varying ) . type
293+ bit_column = @first_bit_string . column_for_attribute ( :bit_string )
294+ bit_varying_column = @first_bit_string . column_for_attribute ( :bit_string_varying )
295+ if ar_version ( '4.2' )
296+ assert_equal :bit , bit_column . type
297+ assert_equal :bit_varying , bit_varying_column . type
298+ else
299+ assert_equal :string , bit_column . type
300+ assert_equal :string , bit_varying_column . type
301+ end
295302 end
296303
297304 def test_data_type_of_oid_types
You can’t perform that action at this time.
0 commit comments