summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2002-03-21 09:42:52 +0000
committerMichael Meskes <meskes@postgresql.org>2002-03-21 09:42:52 +0000
commit73b92d10c66f12ed162857a966eed507bf8d2629 (patch)
tree5b390659e5319966514b931ddf17f740ac87044c /src/interfaces/ecpg/test
parenta13ddd36b03eb076d02bec6364ac07d010447fd2 (diff)
Added typedef patches and a new option '-c' to automatically create C typedefs from SQL ones.
Diffstat (limited to 'src/interfaces/ecpg/test')
-rw-r--r--src/interfaces/ecpg/test/test3.pgc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/test/test3.pgc b/src/interfaces/ecpg/test/test3.pgc
index 6f0afccc75b..2cdde342003 100644
--- a/src/interfaces/ecpg/test/test3.pgc
+++ b/src/interfaces/ecpg/test/test3.pgc
@@ -11,9 +11,8 @@ exec sql type str is varchar[10];
int
main ()
{
- typedef struct { long born; short age; } birthinfo;
- exec sql type birthinfo is struct { long born; short age; };
exec sql begin declare section;
+ typedef struct { long born; short age; } birthinfo;
struct personal_struct { str name;
birthinfo birth;
} personal;