Oracle provider is not able to handle non-geometric tables correctly #20060
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
Milestone
Author Name: Médéric RIBREUX (Médéric RIBREUX)
Original Redmine Issue: 11843
Affected QGIS version: 2.6.0
Redmine category:data_provider/oracle
Assignee: Jürgen Fischer
Hello,
it seems that the Oracle provider of QGis is not able to handle non-geometric tables correctly.
Under Python API, I've found that you need to use a QgsFeatureRequest with a flag set to NoGeometry to be able to fetch features.
This is not the default behavior as written in PyQGis cookbook and nor PostGIS or Spatialite ones.
The following code returns no feature on an Oracle non-geographic layer (even with a primary key). Under PostGIS and Spatialite, the code succeeds.
You have to restrict to a NoGeometry QgsFeatureRequest if you want to fetch features:
Furthermore, this bug seems to have a bad impact on the "Select by Expression" dialog: it is impossible to make a selection with this dialog on a non-geographic Oracle table. Whatever you type in the expression builder, the selection is always empty. I suspect that this problem is linked to the above one.
Steps to reproduce:
or
Best regards,
The text was updated successfully, but these errors were encountered: