Skip to content

Commit eb7aa41

Browse files
authored
Add generated option to quote in SQL adapter (#700)
Otherwise tools like Livebook may attempt to run its doctests.
1 parent be8c863 commit eb7aa41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecto/adapters/sql.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ defmodule Ecto.Adapters.SQL do
790790
explain_doc = @explain_doc
791791
disconnect_all_doc = @disconnect_all_doc
792792

793-
quote do
793+
quote generated: true do
794794
@doc unquote(query_doc)
795795
@spec query(iodata(), Ecto.Adapters.SQL.query_params(), Keyword.t()) ::
796796
{:ok, Ecto.Adapters.SQL.query_result()} | {:error, Exception.t()}

0 commit comments

Comments
 (0)