From 128594fe648fe32bbc7dcffeb96d9cfc89ead643 Mon Sep 17 00:00:00 2001 From: Mykhailo Vstavskyi Date: Mon, 14 Jun 2021 19:35:12 +0300 Subject: [PATCH] parameter description --- src/jamdb_oracle_tns_encoder.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jamdb_oracle_tns_encoder.erl b/src/jamdb_oracle_tns_encoder.erl index e3e5aa3..db9eeec 100644 --- a/src/jamdb_oracle_tns_encoder.erl +++ b/src/jamdb_oracle_tns_encoder.erl @@ -41,8 +41,8 @@ encode_record(description, EnvOpts) -> [] -> "TCP"; _ -> "TCPS" end ++ ")(HOST="++Host++")(PORT="++integer_to_list(Port)++")))"); -encode_record(login, #oraclient{env=EnvOpts,sdu=Sdu}) -> - Data = encode_record(description, EnvOpts), +encode_record(login, #oraclient{env=EnvOpts,sdu=Sdu,auth=Desc}) -> + Data = if Desc =/= [] -> encode_str(Desc); true -> encode_record(description, EnvOpts) end, << 1,57, % Packet version number 1,57, % Lowest compatible version number