Open abhyuday26 opened 1 year ago
@xiangjinwu We seemed to have discussed on this? Please help to take a look ❤️
Not supported: param type: varchar[]
Workaround: set pgx to QueryExecModeExec
so that array is sent in text mode rather than binary mode.
Solution: #7949 support binary mode for 1d array
cfg, err := pgx.ParseConfig("postgres://root@localhost:4566/dev")
if err != nil {
log.Fatalf("Failed to parse config: %v", err)
}
// TODO: Investigate into why simple protocol is required
cfg.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
Setting it to the QueryExecModeSimpleProtocol
should work. But this issue is still what we need to resolve later. Because the extended protocol is theoriotically more efficient.
Describe the bug
While inserting array in risingwave using golang (pgx) this issue was faced.
Error message/log
To Reproduce
Create table using below query
Insert the following values into the table using golang (pgx)
Expected behavior
No response
How did you deploy RisingWave?
No response
The version of RisingWave
Additional context
No response