Oracle database connection lists table multiple times #55961
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Feedback
Waiting on the submitter for answers
Oracle data provider
stale
Uh oh! Seems this work is abandoned, and the PR is about to close.
What is the bug or the crash?
Inside oracle database I have schema "QGIS" with 1 view "TYRIMAI" and 1 table "LAYER_STYLES".
In QGIS inside "Browser" window
oracle connection configured with "Schema" value "QGIS" lists "TYRIMAI" multiple times
Inside Debugging Tool i see SQL that gets multiplied data is:
From what I understand the problem happens because other schemas has object with same name "TYRIMAI".
Inside this SQL changing
c.owner='QGIS'
too.owner='QGIS'
fixes the problem, also joining on owner and filteringc.owner='QGIS'
fixes the problem.here is data of joint tables seperately
select o.OWNER, o.OBJECT_NAME, o.object_type from all_objects o where object_name='TYRIMAI'
select c.owner,c.table_name,c.column_name FROM all_tab_columns c WHERE c.data_type='SDO_GEOMETRY' AND OWNER = 'QGIS'
Steps to reproduce the issue
Configure oracle connection with Schema value provided
Open said schema inside "Browser"
Versions
Qgis 3.28.15-Firenze
Supported QGIS version
New profile
Additional context
No response
The text was updated successfully, but these errors were encountered: