Open bweston92 opened 5 months ago
Error goes away and runs fine if I remove these lines https://github.com/jackc/pgtype/blob/a4d4bbf043f7988ea29696a612cf311026fedf92/varchar_array.go#L27-L32
There's nothing that someone else can try to run here.
You'll see something like this in the generated code
What do you mean generated code? pgtype doesn't have any code that looks like that.
Also, I'd really suggest using pgx v5 instead of v4.
What do you mean generated code? pgtype doesn't have any code that looks like that.
Sorry I originally wrote this in the context of pgx
until I realised the error was in this package.
I will try to get a failing test today if I can reproduce easily.
To Reproduce
Use a Postgres type
varchar[]
Create a query that queries it:
You'll see something like this in the generated code
Expected behavior
Actual behavior