Subject Re: [firebird-support] An Error That Never Was Before...
Author Vlad Khorsun
----- Original Message -----
From: "Kurt Federspiel" <federonline@...>
Newsgroups: egroups.ib-support
To: <firebird-support@yahoogroups.com>
Sent: Tuesday, July 29, 2008 1:29 AM
Subject: [firebird-support] An Error That Never Was Before...


> Greets:
>
> I have a rather large DB Object that I was pairing down into smaller objects. After one such pairing I compiled and ran only to
> get:
>
> "Dynamic SQL Error SQL error code = -804 Incorrect values within SQLDA structure"
>
> This is a simple select of 12 fields, all varchar (typedef struct size of 370 bytes). The only thing I know that is different
> between the working and non-working objects is:
> #pragma pack (1)
>
> This is necessary for the communication protocol we are attempting to use (BACnet).
>
> Can someone give me a brief description of what I messed up??

Make sure Firebird's declarations is not afected by #pragma pack (1), for example use it
always *after* #include <ibase.h>. Also you may restore alignment after including BACnet headers.

Regarsd,
Vlad