summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1998-04-27 14:35:58 +0000
committerMarc G. Fournier <scrappy@hub.org>1998-04-27 14:35:58 +0000
commit718430ea4019db3bcb36b51b44e08a1b2163eae8 (patch)
treefff47c69e2feed4d9a4fc263d771bf64d9279c96 /src/interfaces/ecpg/test
parent3e3477f5a4a5a784133acd8d41109c1efbcbd538 (diff)
From: Michael Meskes <meskes@topsystem.de>
And the next update. Now you can use only parts of a struct like this: exec sql select a into :struct.string from foo;
Diffstat (limited to 'src/interfaces/ecpg/test')
-rw-r--r--src/interfaces/ecpg/test/test2.pgc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/test/test2.pgc b/src/interfaces/ecpg/test/test2.pgc
index 5330991196c..87834aaa6b7 100644
--- a/src/interfaces/ecpg/test/test2.pgc
+++ b/src/interfaces/ecpg/test/test2.pgc
@@ -60,7 +60,7 @@ exec sql end declare section;
while (not_found == 0) {
strcpy(msg, "fetch");
- exec sql fetch cur into :personal:ind_personal, :married:ind_married, :personal.birth.born;
+ exec sql fetch cur into :personal:ind_personal, :married:ind_married;
if (not_found == 0)
printf ("%8.8s was born %d (age = %d) %s%s\n", personal.name.arr, personal.birth.born, personal.birth.age, ind_married ? "" : "and married ", ind_married ? "" : married);
}