Skip to content

Commit bb103e4

Browse files
Fix indentation in GetPGDuckConnection
Run pgindent to convert leading spaces to tabs. Signed-off-by: David Christensen <david.christensen@snowflake.com>
1 parent aa282ee commit bb103e4

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

pg_lake_engine/src/pgduck/client.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -206,18 +206,19 @@ ResolvePgduckConninfo(void)
206206
PGDuckConnection *
207207
GetPGDuckConnection(void)
208208
{
209-
InitializePGDuckClient();
210-
211-
/*
212-
* PGHOSTADDR, if set in the server environment, overrides host= in the
213-
* conninfo — including unix-socket paths — and silently redirects libpq
214-
* to connect via TCP to a numeric IP instead. Clear it before connecting
215-
* so PgduckServerConninfo is always honoured. Unlike PGHOST/PGPORT, which
216-
* lose to explicit conninfo values, PGHOSTADDR unconditionally wins.
217-
*/
218-
unsetenv("PGHOSTADDR");
219-
220-
PGconn *connection = PQconnectdb(PgduckServerConninfo);
209+
InitializePGDuckClient();
210+
211+
/*
212+
* PGHOSTADDR, if set in the server environment, overrides host= in the
213+
* conninfo — including unix-socket paths — and silently redirects
214+
* libpq to connect via TCP to a numeric IP instead. Clear it before
215+
* connecting so PgduckServerConninfo is always honoured. Unlike
216+
* PGHOST/PGPORT, which lose to explicit conninfo values, PGHOSTADDR
217+
* unconditionally wins.
218+
*/
219+
unsetenv("PGHOSTADDR");
220+
221+
PGconn *connection = PQconnectdb(PgduckServerConninfo);
221222

222223
if (PQstatus(connection) != CONNECTION_OK)
223224
{

0 commit comments

Comments
 (0)