-
Goal: I'm trying to have an optional ID value filter for a UUID database column represented in a query through a text input field.
-
Steps: tried the
{{!id.value}} OR id = {{id.value}}::uuid
value approach that works with text/integer columns and text/integer input field types, with and without ::uuid cast, changing the filter{{!id.value}}
to casting ::uuid,== null
,== ""
.... -
Details: the query is rather simple, but I keep getting the following error for almost everything:
invalid input syntax for type uuid: ""
Query:
SELECT * FROM table
WHERE {{!id.value}} OR id = {{id.value}}::uuid
Given the seemingly straightforward nature of this query, I'm not sure what I might be overlooking.