We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 125c064 + 38f5b97 commit 64e484cCopy full SHA for 64e484c
spec/active_record/oracle_enhanced/type/national_character_string_spec.rb
@@ -35,9 +35,11 @@ class ::TestItem < ActiveRecord::Base
35
columns = @conn.columns("test_items")
36
%w(nchar_column nvarchar2_column char_column varchar2_column).each do |col|
37
column = columns.detect { |c| c.name == col }
38
- value = @conn.type_cast_from_column(column, "abc")
+ type = @conn.lookup_cast_type_from_column(column)
39
+ value = type.serialize("abc")
40
expect(@conn.quote(value)).to eq(column.sql_type[0, 1] == "N" ? "N'abc'" : "'abc'")
- nilvalue = @conn.type_cast_from_column(column, nil)
41
42
+ nilvalue = type.serialize(nil)
43
expect(@conn.quote(nilvalue)).to eq("NULL")
44
end
45
0 commit comments