File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/interfaces/ecpg/ecpglib Expand file tree Collapse file tree 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 $ */
22
33#define POSTGRES_ECPG_INTERNAL
44#include "postgres_fe.h"
239239ECPGlog (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
You can’t perform that action at this time.
0 commit comments