Skip to content

Commit 8f24f26

Browse files
close port
1 parent ee1ccbc commit 8f24f26

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ecto/adapters/myxql.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -590,10 +590,11 @@ defmodule Ecto.Adapters.MyXQL do
590590

591591
if acc =~ "__ECTO_EOF__" do
592592
Port.close(port)
593+
{acc, 0}
594+
else
595+
collect_output(port, acc)
593596
end
594597

595-
collect_output(port, acc)
596-
597598
{^port, {:exit_status, status}} ->
598599
{acc, status}
599600
end

0 commit comments

Comments
 (0)