Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit c3f2f72

Browse files
Tianyi Chenapavlo
authored andcommitted
change connection setup so that there would always be an available database
1 parent f2607bb commit c3f2f72

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

test/network/exception_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void *ParserExceptionTest(int port) {
4141
try {
4242
// forcing the factory to generate psql protocol handler
4343
pqxx::connection C(StringUtil::Format(
44-
"host=127.0.0.1 port=%d user=postgres sslmode=disable application_name=psql", port));
44+
"host=127.0.0.1 port=%d user=default_database sslmode=disable application_name=psql", port));
4545

4646
peloton::network::ConnectionHandle *conn =
4747
peloton::network::ConnectionHandleFactory::GetInstance().ConnectionHandleAt(

test/network/prepare_stmt_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void *PrepareStatementTest(int port) {
3737
try {
3838
// forcing the factory to generate jdbc protocol handler
3939
pqxx::connection C(StringUtil::Format(
40-
"host=127.0.0.1 port=%d user=postgres sslmode=disable", port));
40+
"host=127.0.0.1 port=%d user=default_database sslmode=disable", port));
4141
LOG_INFO("[PrepareStatementTest] Connected to %s", C.dbname());
4242
pqxx::work txn1(C);
4343

test/network/select_all_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void *SelectAllTest(int port) {
3838
try {
3939
// forcing the factory to generate psql protocol handler
4040
pqxx::connection C(StringUtil::Format(
41-
"host=127.0.0.1 port=%d user=postgres sslmode=disable application_name=psql", port));
41+
"host=127.0.0.1 port=%d user=default_database sslmode=disable application_name=psql", port));
4242
pqxx::work txn1(C);
4343
peloton::network::ConnectionHandle *conn =
4444
peloton::network::ConnectionHandleFactory::GetInstance().ConnectionHandleAt(

test/network/simple_query_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void *SimpleQueryTest(int port) {
3838
try {
3939
// forcing the factory to generate psql protocol handler
4040
pqxx::connection C(StringUtil::Format(
41-
"host=127.0.0.1 port=%d user=postgres sslmode=disable application_name=psql", port));
41+
"host=127.0.0.1 port=%d user=default_database sslmode=disable application_name=psql", port));
4242
pqxx::work txn1(C);
4343

4444
peloton::network::ConnectionHandle *conn =

test/network/ssl_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void *BasicTest(int port) {
3939
try {
4040
// forcing the factory to generate psql protocol handler
4141
pqxx::connection C(StringUtil::Format(
42-
"host=127.0.0.1 port=%d user=postgres application_name=psql sslmode=require", port));
42+
"host=127.0.0.1 port=%d user=default_database application_name=psql sslmode=require", port));
4343
pqxx::work txn1(C);
4444

4545
peloton::network::ConnectionHandle *conn =

0 commit comments

Comments
 (0)