Просмотр исходного кода

Use the correct variable while sending the request to pgsql

Enid Gjoleka 5 лет назад
Родитель
Сommit
6b166f500c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/commands/epgsql_cmd_connect.erl

+ 1 - 1
src/commands/epgsql_cmd_connect.erl

@@ -72,7 +72,7 @@ execute(PgSock, #connect{opts = #{username := Username} = Opts, stage = connect}
                         _ ->
                             Opts4
                     end,
-           ok = epgsql_sock:send(PgSock2, [<<196608:?int32>>, Opts5, 0]),
+           ok = epgsql_sock:send(PgSock3, [<<196608:?int32>>, Opts5, 0]),
            PgSock4 = case Opts of
                          #{async := Async} ->
                              epgsql_sock:set_attr(async, Async, PgSock3);