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:
g_j_m 2005-02-22 23:38:28 +00:00
parent ecb866afd6
commit 9b820d8afb

View File

@ -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);