mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Set memory segment to '0', just to be sure.
This commit is contained in:
parent
2d3c691146
commit
934eab7cd5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user