Skip to content

Commit

Permalink
Fixed compile error when table_rex isn't loaded
Browse files Browse the repository at this point in the history
Following error was produced:
```
Error: ** (CompileError) lib/ecto_mysql_extras/output.ex:61: defp format/3 already defined as def in lib/ecto_mysql_extras/output.ex:10
```
  • Loading branch information
timothyvanderaerden committed Oct 14, 2021
1 parent 3f0daa7 commit b12b668
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.2.1 (2021-10-14)
### Fixed
* Compile error when table_rex isn't loaded

## v0.2.0 (2021-10-11)
### Added
* Test MySQL 5.7 in CI
Expand Down
2 changes: 1 addition & 1 deletion lib/ecto_mysql_extras/output.ex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ defmodule EctoMySQLExtras.Output do
defp memory_unit(:MB), do: 1024 * 1024
defp memory_unit(:KB), do: 1024
else
defp format(:ascii, _info, _result) do
def format(:ascii, _info, _result) do
IO.warn("""
If you want to display query results in ASCII format you should add `table_rex` as a dependency.
""")
Expand Down

0 comments on commit b12b668

Please sign in to comment.