OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d3c691
)
Set memory segment to '0', just to be sure.
author
Michael Meskes
<meskes@postgresql.org>
Mon, 2 Feb 2009 16:49:50 +0000
(16:49 +0000)
committer
Michael Meskes
<meskes@postgresql.org>
Mon, 2 Feb 2009 16:49:50 +0000
(16:49 +0000)
src/interfaces/ecpg/test/sql/binary.pgc
patch
|
blob
|
history
diff --git
a/src/interfaces/ecpg/test/sql/binary.pgc
b/src/interfaces/ecpg/test/sql/binary.pgc
index
a86aa28
..
3b2f4f6
100644
(file)
--- a/
src/interfaces/ecpg/test/sql/binary.pgc
+++ b/
src/interfaces/ecpg/test/sql/binary.pgc
@@
-59,6
+59,7
@@
main (void)
printf ("name=%s, accs=%d byte=%s\n", empl.name, empl.accs, empl.byte);
+ memset(empl.name, 0, 21L);
EXEC SQL DECLARE B BINARY CURSOR FOR select name, accs, byte from empl where idnum =:empl.idnum;
EXEC SQL OPEN B;
EXEC SQL FETCH B INTO :empl.name,:empl.accs,:empl.byte;