From 64de36a97a42044302d2fcf9d658aaf64a19149c Mon Sep 17 00:00:00 2001 From: robocop Date: Wed, 13 Aug 2003 11:06:02 +0000 Subject: [PATCH] Let's hope the cure is not worse than the sickness Took VARY from ibase.h --- examples/api/apifull.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/examples/api/apifull.c b/examples/api/apifull.c index c4f0904c4c..a2d28083b2 100644 --- a/examples/api/apifull.c +++ b/examples/api/apifull.c @@ -21,7 +21,7 @@ * Contributor(s): ______________________________________. */ /* -$Id: apifull.c,v 1.2 2003-07-11 03:08:30 brodsom Exp $ +$Id: apifull.c,v 1.3 2003-08-13 11:06:02 robocop Exp $ */ #include @@ -48,10 +48,15 @@ process_statement (XSQLDA ** sqlda, char *query); void print_column (XSQLVAR * var); int get_statement (char * buf); -typedef struct vary2 { - short vary_length; +/* ibase.h contains PARAMVARY, with the handicap that vary_string is unsigned char* +instead of plain char*. +Maybe we should fix ibase.h for users but without affecting the engine */ +/* typedef struct vary2 { + unsigned short vary_length; char vary_string [1]; } VARY2; +*/ +typedef PARAMVARY VARY2; isc_db_handle db = NULL; isc_tr_handle trans = NULL;