Re: Informix Host variables
Posted in 1992
Path: emory!europa.asd.contel.com!uunet!gossip.pyramid.com!pyramid!infmx!news From: alexk@infmuc.informix.com (Alexander Koerner) Newsgroups: comp.databases.informix Message-ID: <1992Jan24.075614.22026@informix.com> Date: 24 Jan 92 07:56:14 GMT References: <1992Jan23.184337.81505@evolving.com> Sender: news@informix.com (Usenet News) Reply-To: alexk@infmuc Organization: Informix Software, Inc. In article <1992Jan23.184337.81505@evolving.com> gst@evolving.com writes: > - For a 1 char field do I need to declare the host variable > always as "$char xyz[2]"? > No, for this and other reasons Informix provides you with the data type fixchar! :-) Here follows a part out of the ESQL/C manual, chapter 4 / pg. 11 (4.0 version): - The fixchar data type is the same as the char except that it does not add the trailing null byte to terminate the string. This means that you can declare a fixchar host variable corresponding to a CHAR(n) column as an array with n components. I hope that helps... Greetings from a cold Munich, Alexander -- Alexander Koerner @ Informix Germany Oskar-Messter-Str. 25, D-8045 Ismaning Tel.: +49 89 960 98 215 Fax: +49 89 960 98 500 UUCP: ...!{pyramid,uunet}!infmx!infmuc!alexk