[QGIS-Developer] duplicate oracle views displayed in the layer list

Julien Cabieces julien.cabieces at oslandia.com
Mon Oct 4 01:15:47 PDT 2021


Hi,

Regarding the primary key in disabled mode, it should work since this
PR: https://github.com/qgis/QGIS/pull/35112

Take a look about the test requests in the PR, maybe it'll give you an
hint about why it doesn't work on your side. 

If not, could you please open an issue here: https://github.com/qgis/QGIS/issues/

Kind regards,
Julien

> Hello,
>
> I can't figure out how I should configure my oracle db to avoid qgis to duplicate oracle views in the layer manager. Like shown in the following link:
>
> https://i.stack.imgur.com/esjuI.png
>
> On this image we can see that all oracle views are displayed 3 times:
>
>
>   *   Once as an attribute table
>   *   Once as a layer with a known primary key
>   *   Once as a layer without a known primary key
>
> I though that the issue was link to the fact that the views had no primary keys. This as I saw in the oracle provider code (qgsoracleprovider.cpp)  that there is logic to select a column of the view/table that could be a primary key.
>
> Therefore, I tried to set a primary key on one view as Oracle allows it (in disabled mode). But without any success.
>
> As any one a suggestion? An idea how I could correctly define my oracle views?
>
> I am using Qgis 3.16.9
>
> Thanks
>
> Jonathan
>
>
>
>
>
>
>
>
> Disclaimer
>
> Le pr?sent courriel ainsi que ses annexes ?ventuelles peuvent contenir des informations confidentielles et/ou prot?g?es par des droits de propri?t? intellectuelle et sont destin?s ? l'usage exclusif du (des) destinataire(s) susmentionn?(s). Toute utilisation - notamment, mais non exclusivement, pour la reproduction, la communication ou la distribution totale ou partielle sous quelque forme que ce soit - de leur contenu par des personnes autres que le(s) destinataire(s) d?sign?(s) est interdite. Si vous avez re?u ce courriel par erreur, veuillez en informer l'exp?diteur soit par t?l?phone soit par courriel, et supprimer de tout ordinateur les donn?es y aff?rentes. Merci de votre collaboration. En d?pit des pr?cautions prises, des courriels peuvent ?tre intercept?s, modifi?s, perdus, d?truits ou contenir des virus. Nous d?clinons toute responsabilit? quant aux ?ventuels dommages ?ventuellement caus?s dans cette ?ventualit?. Toute personne qui communique avec SIBELGA par courriel est suppos?e accepter ce risque.
>
> Deze mail en zijn eventuele bijlagen kunnen informatie bevatten die vertrouwelijk is en/of beschermd door intellectuele-eigendomsrechten en zijn bestemd voor exclusief gebruik door voormelde geadresseerde(n). Elk gebruik - onder meer, maar niet exclusief, voor volledige of gedeeltelijke reproductie, communicatie of distributie, onder welke vorm ook - van de inhoud ervan door andere personen dan de aangeduide geadresseerde(n), is verboden. Hebt u deze mail per vergissing ontvangen, gelieve de verzender daarvan per telefoon of mail te verwittigen, en de eraan gekoppelde gegevens van elke computer te verwijderen. Met dank voor uw medewerking. Ondanks de genomen voorzorgen, kunnen er mails worden onderschept, gewijzigd, verloren, vernietigd of kunnen zij virussen bevatten. Wij wijzen elke verantwoordelijkheid af met betrekking tot eventuele schade die in die hypothese zou zijn veroorzaakt. Elke persoon die via mail met SIBELGA communiceert, wordt geacht dat risico te aanvaarden.
>
> Sibelga<https://www.sibelga.be>
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the QGIS-Developer mailing list