Skip to content

Commit 3910609

Browse files
raise for mysql
1 parent b8995d7 commit 3910609

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/ecto/adapters/myxql/connection.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,12 @@ if Code.ensure_loaded?(MyXQL) do
812812

813813
integer when is_integer(integer) ->
814814
"[#{integer}]"
815+
816+
_ ->
817+
error!(
818+
query,
819+
"MySQL adapter does not support references to source fields inside of `json_extract_path`"
820+
)
815821
end)
816822

817823
["json_extract(", expr(expr, sources, query), ", '$", path, "')"]

0 commit comments

Comments
 (0)