From 718430ea4019db3bcb36b51b44e08a1b2163eae8 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Mon, 27 Apr 1998 14:35:58 +0000 Subject: From: Michael Meskes And the next update. Now you can use only parts of a struct like this: exec sql select a into :struct.string from foo; --- src/interfaces/ecpg/test/test2.pgc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/interfaces/ecpg/test') 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); } -- cgit v1.2.3