File tree 1 file changed +3
-2
lines changed
src/interfaces/ecpg/ecpglib 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 $ */
2
2
3
3
#define POSTGRES_ECPG_INTERNAL
4
4
#include "postgres_fe.h"
239
239
ECPGlog (const char * format ,...)
240
240
{
241
241
va_list ap ;
242
+ struct sqlca_t * sqlca = ECPGget_sqlca ();
242
243
243
244
#ifdef ENABLE_THREAD_SAFETY
244
245
pthread_mutex_lock (& debug_mutex );
@@ -273,7 +274,7 @@ ECPGlog(const char *format,...)
273
274
/* dump out internal sqlca variables */
274
275
if (getenv ("ECPG_DONT_LOG_PID" ))
275
276
fprintf (debugstream , "[NO_PID]: sqlca: code: %ld, state: %s\n" ,
276
- sqlca . sqlcode , sqlca . sqlstate );
277
+ sqlca -> sqlcode , sqlca -> sqlstate );
277
278
278
279
fflush (debugstream );
279
280
You can’t perform that action at this time.
0 commit comments