[Qgis-developer] [DB Manager][Oracle] No key field for query given

René-Luc Dhont rldhont at gmail.com
Wed Jan 6 03:40:20 PST 2016


Hi devs,

A customer and I have some troubles with "DB Manager" and "Oracle". 
Every times we load an SQL query to layer, we get the log message:
* No key field for query given

To verify where the issue comes from, I wrote n python script to test 
loading an SQL query to layer with a keyColumn specified. I can load the 
SQL query.

I'd like to know if others have the same issue ?

I didn't know about QStandardItemModel, and I do'nt know if 
`uniqueFieldName = 
self.uniqueModel.item(self.uniqueCombo.currentIndex()).data()` well gets 
defined primary key in dlg_sql_window.sql

Regards,
René-Luc



More information about the Qgis-developer mailing list