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
Before this commit 2489d54 I was able to do the following.
CREATETABLEtable_name (
id BIGSERIALPRIMARY KEY,
data BYTEA
);
-- name: InsertData :execINSERT INTO table_name (data)
VALUES (pggen.arg ('data'));
However, from that commit onwards, I now get the following error.
ERROR: generate go code: template all: template query file /path/file.sql for go: resolve known type &{"" %!q(*gotype.OpaqueType=&{<nil> byte})} does not have pg array type "bytea"
My command looks like the following;
pggen gen go \
--output-dir ./../postgres \
--query-glob './queries/*.sql' \
--postgres-connection "user=postgres port=5432 dbname=databasename password=password host=localhost"
Before this commit 2489d54 I was able to do the following.
However, from that commit onwards, I now get the following error.
My command looks like the following;
It appears this changed the behavior 2489d54#diff-c42aa8077d6b0565a2ffc41636d61300a263997cbe44e90c16b7db051f9f9fdeR50
According to the comments on pg.ArrayType
However, this is not the case for bytea.
I was able to overcome this error by using the following command instead. However, this feels like it should be the default behavior.
The text was updated successfully, but these errors were encountered: