#include #include #include EXEC SQL INCLUDE ../regression; EXEC SQL BEGIN DECLARE SECTION; struct teststruct1 { VARCHAR a[20]; VARCHAR b[20]; }; struct teststruct2 { VARCHAR a[20]; VARCHAR b[20]; }; EXEC SQL END DECLARE SECTION; int main(int argc, char* argv[]) { EXEC SQL BEGIN DECLARE SECTION; struct teststruct1 ts1; struct teststruct2 ts2; EXEC SQL END DECLARE SECTION; ECPGdebug(1, stderr); EXEC SQL CONNECT TO REGRESSDB1; EXEC SQL SELECT 'foo', 'bar' into :ts1; EXEC SQL SELECT 'foz', 'baz' into :ts2; printf("test\na b\n%s %s\n%s %s\n", ts1.a.arr, ts1.b.arr, ts2.a.arr, ts2.b.arr); EXEC SQL DISCONNECT ALL; return 0; }