lib/google/cloud/spanner/convert.rb in google-cloud-spanner-2.21.0 vs lib/google/cloud/spanner/convert.rb in google-cloud-spanner-2.22.0

- old
+ new

@@ -181,11 +181,11 @@ array_element_type: grpc_type_for_field(field.first) ) when :PG_NUMERIC V1::Type.new(code: :NUMERIC, type_annotation: :PG_NUMERIC) when :PG_JSONB - V1::Type.new(code: :JSON, type_annotation: :PG_JSONB) + V1::Type.new(code: :JSON, type_annotation: :PG_JSONB) else V1::Type.new(code: field) end end @@ -195,10 +195,10 @@ case type.code when :BOOL value.bool_value when :INT64 Integer value.string_value - when :FLOAT64 + when :FLOAT32, :FLOAT64 if value.kind == :string_value if value.string_value == "Infinity" Float::INFINITY elsif value.string_value == "-Infinity" -Float::INFINITY