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 eb0e126 commit 6e0fdc9Copy full SHA for 6e0fdc9
lib/ecto/adapters/myxql.ex
@@ -550,6 +550,7 @@ defmodule Ecto.Adapters.MyXQL do
550
end
551
552
{args, cmd_opts} = args_cmd_opts(opts, opt_args, cmd_opts)
553
+ cmd = String.to_charlist(command)
554
555
cmd =
556
if Path.type(cmd) == :absolute do
@@ -558,7 +559,7 @@ defmodule Ecto.Adapters.MyXQL do
558
559
:os.find_executable(cmd) || :erlang.error(:enoent, [cmd, args, cmd_opts])
560
561
- port_opts = port_opts(cmd_opts, [args: args])
562
+ port_opts = port_opts(cmd_opts, args: args)
563
port = Port.open({:spawn_executable, cmd}, port_opts)
564
Port.command(port, contents)
565
0 commit comments