Skip to content

Commit

Permalink
add validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dkuku committed Oct 11, 2024
1 parent c4ae063 commit 5aee3aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/postgrex/protocol.ex
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ defmodule Postgrex.Protocol do
| {:disconnect, %DBConnection.ConnectionError{}, state}
def handle_execute(%Query{} = query, params, opts, s) do
comment = Keyword.get(opts, :comment)
validate_comment(query.comment, s)
query = %{query | comment: comment}

case Keyword.get(opts, :postgrex_copy, false) do
Expand Down

0 comments on commit 5aee3aa

Please sign in to comment.