Type Mismatch when upserting with unnest #59427
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
X-blathers-untriaged
blathers was unable to find an owner
Describe the problem
Please describe the issue you observed, and any steps we can take to reproduce it:
To Reproduce
The first upsert works well, string is converted to jsonb
The second upsert fails with type mismatch error
SQL Error [42804]: ERROR: value type string doesn't match type jsonb of column "a"
Environment:
This is just an example, my interest is on bulk loading data using unnest and passing array parameters , such as
upsert into test(id,a) select * from unnest(@p1,@p2)
The text was updated successfully, but these errors were encountered: