Skip to content

Commit

Permalink
parameter description
Browse files Browse the repository at this point in the history
  • Loading branch information
vstavskyi authored Jun 14, 2021
1 parent 41c6e35 commit 128594f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jamdb_oracle_tns_encoder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 128594f

Please sign in to comment.