Skip to content

Commit

Permalink
Fix compile "typing" warning
Browse files Browse the repository at this point in the history
We will check the config at runtime now instead of relying on it being
compiled as having the type set.

Fixes #157
  • Loading branch information
warmwaffles committed Dec 20, 2024
1 parent 5677ff0 commit 70f4edd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/ecto/adapters/sqlite3/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1384,11 +1384,9 @@ defmodule Ecto.Adapters.SQLite3.Connection do
[quote_name(name)]
end

@datetime_type Application.compile_env(:ecto_sqlite3, :datetime_type, :iso8601)

defp expr({:datetime_add, _, [datetime, count, interval]}, sources, query) do
format =
case @datetime_type do
case Application.get_env(:ecto_sqlite3, :datetime_type) do
:text_datetime ->
"%Y-%m-%d %H:%M:%f000Z"

Expand Down

0 comments on commit 70f4edd

Please sign in to comment.