Skip to content

Commit

Permalink
Fix module name in raise (#695)
Browse files Browse the repository at this point in the history
  • Loading branch information
preciz authored Jul 26, 2024
1 parent c0eb94e commit 85bac2d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/postgrex/extensions/box.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Postgrex.Extensions.Box do
[<<32::int32()>>, encoded_p1 | encoded_p2]

other ->
raise DBConnection.EncodeError, Postgrex.Utils.encode_msg(other, Postgrex.Line)
raise DBConnection.EncodeError, Postgrex.Utils.encode_msg(other, Postgrex.Box)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/postgrex/extensions/circle.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Postgrex.Extensions.Circle do
<<24::int32(), x::float64(), y::float64(), r::float64()>>

other ->
raise DBConnection.EncodeError, Postgrex.Utils.encode_msg(other, Postgrex.Path)
raise DBConnection.EncodeError, Postgrex.Utils.encode_msg(other, Postgrex.Circle)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/postgrex/extensions/line_segment.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Postgrex.Extensions.LineSegment do
[<<32::int32()>>, encoded_p1 | encoded_p2]

other ->
raise DBConnection.EncodeError, Postgrex.Utils.encode_msg(other, Postgrex.Line)
raise DBConnection.EncodeError, Postgrex.Utils.encode_msg(other, Postgrex.LineSegment)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/postgrex/result.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule Postgrex.Result do
* `num_rows` - The number of fetched or affected rows;
* `connection_id` - The OS pid of the PostgreSQL backend that executed the query;
* `messages` - A list of maps of messages, such as hints and notices, sent by the
the driver during the execution of the query
driver during the execution of the query.
"""

@type t :: %__MODULE__{
Expand Down

0 comments on commit 85bac2d

Please sign in to comment.