Skip to content

Commit 1c499d2

Browse files
committed
blob encode uuids if stored as binary
1 parent 79d94c8 commit 1c499d2

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
@@ -479,7 +479,7 @@ defmodule Ecto.Adapters.SQLite3 do
479479
def dumpers(:uuid, type) do
480480
case Application.get_env(:ecto_sqlite3, :uuid_type, :string) do
481481
:string -> []
482-
:binary -> [type]
482+
:binary -> [type, &Codec.blob_encode/1]
483483
end
484484
end
485485

0 commit comments

Comments
 (0)