Skip to content

Commit 2c164f4

Browse files
authored
Fix bad init file loading in dump_cmd/3 (#111)
1 parent 88a6bae commit 2c164f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecto/adapters/sqlite3.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ defmodule Ecto.Adapters.SQLite3 do
266266

267267
@impl Ecto.Adapter.Structure
268268
def dump_cmd(args, opts \\ [], config) when is_list(config) and is_list(args) do
269-
run_with_cmd("sqlite3", [config[:database] | args], opts)
269+
run_with_cmd("sqlite3", ["-init", "/dev/null", config[:database] | args], opts)
270270
end
271271

272272
@impl Ecto.Adapter.Schema

0 commit comments

Comments
 (0)