mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Clarification of message when a view without an oid column is selected
git-svn-id: http://svn.osgeo.org/qgis/trunk@2863 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
ecb866afd6
commit
9b820d8afb
@ -760,8 +760,12 @@ QString QgsPostgresProvider::getPrimaryKey(){
|
||||
QMessageBox::warning(0, QObject::tr("No oid column"),
|
||||
QObject::tr("The table or view has no oid column. \n"
|
||||
"This is most likely because it is a view.\n"
|
||||
"For Qgis to work correctly the view must have an"
|
||||
" oid column."));
|
||||
"For Qgis to work correctly the view must have a"
|
||||
" column called oid. This column should have an integer"
|
||||
" type and be unique for each row in the view."
|
||||
" For better performance, the column should"
|
||||
" also be indexed or be derived come from an indexed"
|
||||
" column."));
|
||||
QApplication::setOverrideCursor(Qt::waitCursor);
|
||||
}
|
||||
PQclear(oidPresent);
|
||||
|
Loading…
x
Reference in New Issue
Block a user