Skip to content

SRID being treated as a binary #8

@murraybryant

Description

@murraybryant

defmacro st_transform(wkt, srid) do
quote do: expr(fragment("ST_Transform(?,?)", unquote(wkt), unquote(srid)))
end

give me the error

(DBConnection.EncodeError) Postgrex expected a binary, got 28355.

where 28355 is the srid

if i use my own fragment

fragment(
"ST_Within(?, ST_Transform(boundary, ?::integer)

it works

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions