Skip to content

Commit 6365eb7

Browse files
author
Sandro Santilli
committed
Do not hard-code database connection parameters
Rely on libpq defaults instead (overridable via environment) Fixes #14308
1 parent 427e5e9 commit 6365eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/src/core/testqgsvectorlayerjoinbuffer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void TestVectorLayerJoinBuffer::initTestCase()
106106
QString dbConn = getenv( "QGIS_PGTEST_DB" );
107107
if ( dbConn.isEmpty() )
108108
{
109-
dbConn = "dbname='qgis_test' host=localhost port=5432 user='postgres' password='postgres'";
109+
dbConn = "dbname='qgis_test'";
110110
}
111111
QgsVectorLayer* vlA_PG = new QgsVectorLayer( QString( "%1 sslmode=disable key='id_a' table=\"qgis_test\".\"table_a\" sql=" ).arg( dbConn ), "A_PG", "postgres" );
112112
QgsVectorLayer* vlB_PG = new QgsVectorLayer( QString( "%1 sslmode=disable key='id_b' table=\"qgis_test\".\"table_b\" sql=" ).arg( dbConn ), "B_PG", "postgres" );

0 commit comments

Comments
 (0)