Skip to content

Commit 6e0fdc9

Browse files
fix errors
1 parent eb0e126 commit 6e0fdc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ecto/adapters/myxql.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ defmodule Ecto.Adapters.MyXQL do
550550
end
551551

552552
{args, cmd_opts} = args_cmd_opts(opts, opt_args, cmd_opts)
553+
cmd = String.to_charlist(command)
553554

554555
cmd =
555556
if Path.type(cmd) == :absolute do
@@ -558,7 +559,7 @@ defmodule Ecto.Adapters.MyXQL do
558559
:os.find_executable(cmd) || :erlang.error(:enoent, [cmd, args, cmd_opts])
559560
end
560561

561-
port_opts = port_opts(cmd_opts, [args: args])
562+
port_opts = port_opts(cmd_opts, args: args)
562563
port = Port.open({:spawn_executable, cmd}, port_opts)
563564
Port.command(port, contents)
564565

0 commit comments

Comments
 (0)