I have table storage, storage has column f_size (type fsize), but method EQ support only string, when sql-query bulding, I got cast-error because library trying custom type compare with String.
sqlStatment
SELECT storage.id AS "storage.id",
storage.created_at AS "storage.created_at",
storage.name AS "storage.name",
storage.path AS "storage.path",
storage.f_type AS "storage.f_type",
storage.parent_id AS "storage.parent_id",
storage.f_size AS "storage.f_size",
storage.created_by AS "storage.created_by"
FROM public.storage
WHERE (storage.f_size = 'original'::text) AND (
(storage.created_by = '50cb0a24-0000-4c8c-93ad-4137c4087662') OR storage.created_by IS NULL);
Error:
jet: pq: operator does not exist: public.fsize = text
So error in this line: storage.f_size = 'original'::text
Little description:
I have table
storage
,storage
has columnf_size
(typefsize
), but methodEQ
support only string, when sql-query bulding, I got cast-error because library trying custom type compare with String.``
Query (builed by library):
Error:
So error in this line:
storage.f_size = 'original'::text