Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c1c9b7c0
Commit
c1c9b7c0
authored
Jul 31, 2006
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First small patches needed for regression tests
parent
68dfef04
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
src/interfaces/ecpg/ecpglib/misc.c
src/interfaces/ecpg/ecpglib/misc.c
+17
-3
src/interfaces/ecpg/include/sqlca.h
src/interfaces/ecpg/include/sqlca.h
+1
-1
No files found.
src/interfaces/ecpg/ecpglib/misc.c
View file @
c1c9b7c0
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2
7 2006/06/21 11:38:07
meskes Exp $ */
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2
8 2006/07/31 10:15:30
meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
...
...
@@ -246,7 +246,8 @@ ECPGlog(const char *format,...)
if
(
simple_debug
)
{
char
*
f
=
(
char
*
)
malloc
(
strlen
(
format
)
+
100
);
int
bufsize
=
strlen
(
format
)
+
100
;
char
*
f
=
(
char
*
)
malloc
(
bufsize
);
if
(
f
==
NULL
)
{
...
...
@@ -256,11 +257,24 @@ ECPGlog(const char *format,...)
return
;
}
sprintf
(
f
,
"[%d]: %s"
,
(
int
)
getpid
(),
format
);
/*
* regression tests set this environment variable to get the same
* output for every run.
*/
if
(
getenv
(
"ECPG_DONT_LOG_PID"
))
snprintf
(
f
,
bufsize
,
"[NO_PID]: %s"
,
format
);
else
snprintf
(
f
,
bufsize
,
"[%d]: %s"
,
(
int
)
getpid
(),
format
);
va_start
(
ap
,
format
);
vfprintf
(
debugstream
,
f
,
ap
);
va_end
(
ap
);
/* dump out internal sqlca variables */
if
(
getenv
(
"ECPG_DONT_LOG_PID"
))
fprintf
(
debugstream
,
"[NO_PID]: sqlca: code: %ld, state: %s
\n
"
,
sqlca
.
sqlcode
,
sqlca
.
sqlstate
);
fflush
(
debugstream
);
ECPGfree
(
f
);
...
...
src/interfaces/ecpg/include/sqlca.h
View file @
c1c9b7c0
...
...
@@ -9,7 +9,7 @@
#endif
/* __CYGWIN__ */
#endif
/* DLLIMPORT */
#define SQLERRMC_LEN
7
0
#define SQLERRMC_LEN
15
0
#ifdef __cplusplus
extern
"C"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment