Bug fix: reporting of a postgres error was using the wrong sql for the error message

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4023 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
g_j_m 2005-10-03 05:58:51 +00:00
parent 2bb9d07e7f
commit 06fbe0b440

View File

@ -419,7 +419,7 @@ bool QgsDbSourceSelect::getGeometryColumnInfo(PGconn *pg,
PGresult* gresult = PQexec(pg, (const char*) query);
if (PQresultStatus(gresult) != PGRES_TUPLES_OK)
{
qDebug(tr("Access to relation ") + table + tr(" using sql;\n") + sql +
qDebug(tr("Access to relation ") + table + tr(" using sql;\n") + query +
tr("\nhas failed. The database said:\n") +
QString( PQresultErrorMessage(gresult)) );
}