Skip to content

Commit e0a1ca9

Browse files
committed
Postgres, fix tests failing due float4 and float8 types registration
1 parent 22c75b5 commit e0a1ca9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/arjdbc/postgresql/oid_types.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def initialize_type_map_inner(m)
112112
m.register_type "int4", Type::Integer.new(limit: 4)
113113
m.register_type "int8", Type::Integer.new(limit: 8)
114114
m.register_type "oid", OID::Oid.new
115-
m.register_type "float4", Type::Float.new
116-
m.alias_type "float8", "float4"
115+
m.register_type "float4", Type::Float.new(limit: 24)
116+
m.register_type "float8", Type::Float.new
117117
m.register_type "text", Type::Text.new
118118
register_class_with_limit m, "varchar", Type::String
119119
m.alias_type "char", "varchar"

0 commit comments

Comments
 (0)