Skip to content

Commit ee1ccbc

Browse files
close port
1 parent fe5d756 commit ee1ccbc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ecto/adapters/myxql.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -589,11 +589,11 @@ defmodule Ecto.Adapters.MyXQL do
589589
acc = acc <> data
590590

591591
if acc =~ "__ECTO_EOF__" do
592-
{acc, 0}
593-
else
594-
collect_output(port, acc)
592+
Port.close(port)
595593
end
596594

595+
collect_output(port, acc)
596+
597597
{^port, {:exit_status, status}} ->
598598
{acc, status}
599599
end

0 commit comments

Comments
 (0)