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 )
104
104
if ( PQresultStatus ( testAccess ) != PGRES_TUPLES_OK )
105
105
{
106
106
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 ) );
110
111
valid = false ;
111
112
disconnectDb ();
112
113
return ;
@@ -123,9 +124,10 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
123
124
if ( PQresultStatus ( testAccess ) != PGRES_TUPLES_OK )
124
125
{
125
126
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 ) );
129
131
valid = false ;
130
132
disconnectDb ();
131
133
return ;
You can’t perform that action at this time.
0 commit comments