Skip to content

Commit

Permalink
chore: remove raised error
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Dec 2, 2024
1 parent d1a434b commit d6bb54a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions lib/sql_implementation.ex
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,6 @@ defmodule AshPostgres.SqlImplementation do
do: nil

def parameterized_type(type, constraints, no_maps?) do
if type == :array do
raise "WHAT"
end

if Ash.Type.ash_type?(type) do
cast_in_query? =
if function_exported?(Ash.Type, :cast_in_query?, 2) do
Expand Down
12 changes: 6 additions & 6 deletions lib/types/ltree.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ defmodule AshPostgres.Ltree do
doc: """
Escape the ltree segments to make it possible to include characters that
are either `.` (the separation character) or any other unsupported
character like `-` (Postgres <= 15).
character like `-` (Postgres <= 15).
If the option is enabled, any characters besides `[0-9a-zA-Z]` will be
replaced with `_[HEX Ascii Code]`.
replaced with `_[HEX Ascii Code]`.
Additionally the type will no longer take strings as user input since
it's impossible to decide between `.` being a separator or part of a
segment.
segment.
If the option is disabled, any string will be relayed directly to
postgres. If the segments are provided as a list, they can't contain `.`
since postgres would split the segment.
Expand Down

0 comments on commit d6bb54a

Please sign in to comment.