Skip to content

Commit 82b82cd

Browse files
committed
Added the ability to specify a configuration name in the Postgres client.
1 parent 991d74d commit 82b82cd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

WebSocketAPI.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Module Name:
3030
#include "jwt.h"
3131
//----------------------------------------------------------------------------------------------------------------------
3232

33+
#define PG_LISTEN_CONF "helper"
3334
#define PG_LISTEN_NAME "daemon.init_listen()"
3435
//----------------------------------------------------------------------------------------------------------------------
3536

@@ -1383,15 +1384,15 @@ namespace Apostol {
13831384
SQL.Add("SELECT " PG_LISTEN_NAME ";");
13841385

13851386
try {
1386-
ExecSQL(SQL, nullptr, OnExecuted, OnException);
1387+
ExecSQL(SQL, nullptr, OnExecuted, OnException, PG_LISTEN_CONF);
13871388
} catch (Delphi::Exception::Exception &E) {
13881389
DoError(E);
13891390
}
13901391
}
13911392
//--------------------------------------------------------------------------------------------------------------
13921393

13931394
void CWebSocketAPI::CheckListen() {
1394-
if (!PQClient().CheckListen(PG_LISTEN_NAME))
1395+
if (!PQClient(PG_LISTEN_CONF).CheckListen(PG_LISTEN_NAME))
13951396
InitListen();
13961397
}
13971398
//--------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)