Skip to content

Commit 4cd72b5

Browse files
author
Michael Meskes
committed
Added missing ECPGget_sqlca() call
1 parent c1c9b7c commit 4cd72b5

File tree

1 file changed

+3
-2
lines changed
  • src/interfaces/ecpg/ecpglib

1 file changed

+3
-2
lines changed

src/interfaces/ecpg/ecpglib/misc.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.28 2006/07/31 10:15:30 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.29 2006/07/31 13:26:46 meskes Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -239,6 +239,7 @@ void
239239
ECPGlog(const char *format,...)
240240
{
241241
va_list ap;
242+
struct sqlca_t *sqlca = ECPGget_sqlca();
242243

243244
#ifdef ENABLE_THREAD_SAFETY
244245
pthread_mutex_lock(&debug_mutex);
@@ -273,7 +274,7 @@ ECPGlog(const char *format,...)
273274
/* dump out internal sqlca variables */
274275
if (getenv("ECPG_DONT_LOG_PID"))
275276
fprintf(debugstream, "[NO_PID]: sqlca: code: %ld, state: %s\n",
276-
sqlca.sqlcode, sqlca.sqlstate);
277+
sqlca->sqlcode, sqlca->sqlstate);
277278

278279
fflush(debugstream);
279280

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy