Skip to content

Commit 70f4edd

Browse files
committed
Fix compile "typing" warning
We will check the config at runtime now instead of relying on it being compiled as having the type set. Fixes #157
1 parent 5677ff0 commit 70f4edd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/ecto/adapters/sqlite3/connection.ex

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,11 +1384,9 @@ defmodule Ecto.Adapters.SQLite3.Connection do
13841384
[quote_name(name)]
13851385
end
13861386

1387-
@datetime_type Application.compile_env(:ecto_sqlite3, :datetime_type, :iso8601)
1388-
13891387
defp expr({:datetime_add, _, [datetime, count, interval]}, sources, query) do
13901388
format =
1391-
case @datetime_type do
1389+
case Application.get_env(:ecto_sqlite3, :datetime_type) do
13921390
:text_datetime ->
13931391
"%Y-%m-%d %H:%M:%f000Z"
13941392

0 commit comments

Comments
 (0)