File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -104,9 +104,10 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
104104 if ( PQresultStatus ( testAccess ) != PGRES_TUPLES_OK )
105105 {
106106 showMessageBox ( tr ( " Unable to access relation" ),
107- tr ( " Unable to access the %1 relation.\n " ).arg ( mSchemaTableName )
108- + tr ( " The error message from the database was:\n %1.\n SQL: %2" )
109- .arg ( QString::fromUtf8 ( PQresultErrorMessage ( testAccess ) ).arg ( sql ) ) );
107+ tr ( " Unable to access the %1 relation.\n The error message from the database was:\n %2.\n SQL: %3" )
108+ .arg ( mSchemaTableName )
109+ .arg ( QString::fromUtf8 ( PQresultErrorMessage ( testAccess ) ) )
110+ .arg ( sql ) );
110111 valid = false ;
111112 disconnectDb ();
112113 return ;
@@ -123,9 +124,10 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
123124 if ( PQresultStatus ( testAccess ) != PGRES_TUPLES_OK )
124125 {
125126 showMessageBox ( tr ( " Unable to access relation" ),
126- tr ( " Unable to determine table access privileges for the %1 relation.\n " ).arg ( mSchemaTableName )
127- + tr ( " The error message from the database was:\n %1.\n SQL: %2" )
128- .arg ( QString::fromUtf8 ( PQresultErrorMessage ( testAccess ) ) ).arg ( sql ) );
127+ tr ( " Unable to determine table access privileges for the %1 relation.\n The error message from the database was:\n %2.\n SQL: %3" )
128+ .arg ( mSchemaTableName )
129+ .arg ( QString::fromUtf8 ( PQresultErrorMessage ( testAccess ) ) )
130+ .arg ( sql ) );
129131 valid = false ;
130132 disconnectDb ();
131133 return ;
You can’t perform that action at this time.
0 commit comments