You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a table with a UUID column (called external_id) and I'm trying to write a query to look up a row by UUID but it's not working and fails with
clojure.lang.ExceptionInfo: ERROR: operator does not exist: uuid = character varying
Hint: No operator matches the given name and argument types. You might need to add explicit type casts.
Position: 42 {:query-id :get-business-for-external-id}
at conman.core$try_query$fn__15886$fn__15887.invoke(core.clj:34)
Here's the hugsql function
-- :name get-business-for-external-id :? :1
-- :doc retrieves a record given the external id
SELECT * FROM business
WHERE external_id = :external_id
I even tried doing WHERE external_id = :external_id::uuid but that didn't work either
The text was updated successfully, but these errors were encountered:
Hi, I have a table with a UUID column (called
external_id
) and I'm trying to write a query to look up a row by UUID but it's not working and fails withHere's the hugsql function
I even tried doing
WHERE external_id = :external_id::uuid
but that didn't work eitherThe text was updated successfully, but these errors were encountered: