We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af3463a commit eb0e126Copy full SHA for eb0e126
lib/ecto/adapters/myxql.ex
@@ -555,15 +555,16 @@ defmodule Ecto.Adapters.MyXQL do
555
if Path.type(cmd) == :absolute do
556
cmd
557
else
558
- :os.find_executable(cmd) || :erlang.error(:enoent, [command, args, cmd_opts])
+ :os.find_executable(cmd) || :erlang.error(:enoent, [cmd, args, cmd_opts])
559
end
560
561
port_opts = port_opts(cmd_opts, [args: args])
562
port = Port.open({:spawn_executable, cmd}, port_opts)
563
- Port.command(port, content)
+ Port.command(port, contents)
564
+
565
+ {initial, fun} = Collectable.into("")
566
567
try do
- {initial, fun} = Collectable.into("")
568
do_port_byte(port, initial, fun)
569
catch
570
kind, reason ->
0 commit comments