Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
epgsql
0011-epgsql_binary-fix-null-undefined-encoding-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0011-epgsql_binary-fix-null-undefined-encoding-193.patch of Package epgsql
From 79cd069ac68172690ca2e809291b27a4d8b38efb Mon Sep 17 00:00:00 2001 From: Led <ledest@gmail.com> Date: Thu, 25 Jul 2019 00:33:02 +0300 Subject: [PATCH] epgsql_binary: fix 'null'/'undefined' encoding (#193) --- src/epgsql_binary.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/epgsql_binary.erl b/src/epgsql_binary.erl index 4422138..6285d24 100644 --- a/src/epgsql_binary.erl +++ b/src/epgsql_binary.erl @@ -232,6 +232,7 @@ encode_with_type(Type, Value) -> encode_value(Value, {Mod, Name, State}) end. +encode_value(Value, _) when Value =:= null; Value =:= undefined -> <<-1:?int32>>; encode_value(Value, {Mod, Name, State}) -> Payload = epgsql_codec:encode(Mod, Value, Name, State), [<<(iolist_size(Payload)):?int32>> | Payload]. -- 2.16.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor