mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
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:
parent
2bb9d07e7f
commit
06fbe0b440
@ -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)) );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user