Unable to add a new feature when joining two PostGIS tables #33148
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
Editing
Feedback
Waiting on the submitter for answers
Describe the bug
I have two Postgresql tables: parent and child, as the following:
In QGIS I have made a join between these two tables. But I am not able to add new features from the attribute table. When I do so I got the following error:
Could not commit changes to layer child
How to Reproduce
1- Create these two tables, as described above.
2- Add them to QGIS.
3- Right click on the parent table, then select properties, then from the Joins tab create a new Join as shown in the attached screen shot.
4- Then allow editing both layers.
5- After that open the attribute table of the parent layer, then select Add Feature, and fill in the type and name fields.
6- Save the parent layer, it will be saved with no problems. Then the child layer, it will generate the error mentioned above.
QGIS and OS versions
QGIS version
3.10.0-A Coruña
QGIS code revision
6ffa89e
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.0.2
Running against GDAL/OGR
3.0.2
Compiled against GEOS
3.8.0-CAPI-1.13.1
Running against GEOS
3.8.0-CAPI-1.13.1
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.2.1
Running against PROJ
Rel. 6.2.1, November 1st, 2019
OS Version
Windows 10 (10.0)
Active python plugins
quick_map_services;
db_manager;
MetaSearch;
processing
Running on Windows 10 machine.
The text was updated successfully, but these errors were encountered: