JSON column from a Postgresql Database is working to read information, but when editing the column and saving it, an error occurs #29128
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Data Provider
Related to specific vector, raster or mesh data providers
Author Name: Felipe Souza (@felkis)
Original Redmine Issue: 21310
Affected QGIS version: 3.4.4
Redmine category:data_provider/postgis
The error seems to occur when saving from qgis back to Postgresql.
I´m connecting to a Postgresql Database, opening a table that has a json field. I see the data, and I´m trying to add an extra letter to a field. (attachment print).
The way I see, it seems that QGIS is sending back data as "hstore", but the column from my table is json.
ERROR ALERT:
Error PostGIS when changing attributes: ERROR: column "info" is of type jsonb but expression is of type hstore
LINE 1: ...TE "geometria"."plan_perimetro_urbano" SET "info"=E'"bike"=>...
^
HINT: You will need to rewrite or cast the expression.
Related issue(s): #29133 (copied_to)
Redmine related issue(s): 21315
The text was updated successfully, but these errors were encountered: