Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Rychlewski authored and Greg Rychlewski committed Jul 21, 2023
1 parent 31632a0 commit 45887b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ecto/adapters/myxql.ex
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ defmodule Ecto.Adapters.MyXQL do
database = Keyword.fetch!(opts, :database) || raise ":database is nil in repository configuration"
opts = Keyword.delete(opts, :database)
charset = opts[:charset] || "utf8mb4"
check_existence_command = "SELECT TRUE FROM information_schema.schemata WHERE schema_name = '#{database}'"

check_existence_command = "SELECT TRUE FROM information_schema.schemata WHERE schema_name = '#{database}'"
case run_query(check_existence_command, opts) do
{:ok, %{num_rows: 1}} ->
{:error, :already_up}
Expand Down Expand Up @@ -452,7 +452,7 @@ defmodule Ecto.Adapters.MyXQL do
"--host", host,
"--port", to_string(port),
"--protocol", protocol
] ++ user_args ++ database_args ++ opt_args
] ++ user_args ++ opt_args

cmd_opts =
cmd_opts
Expand Down

0 comments on commit 45887b2

Please sign in to comment.