Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!trac2000!das From: das@trac2000.ueci.com (David Snyder) Newsgroups: comp.databases Subject: Re: Informix ESQL/C SQLDA-structure problem Message-ID: <1043@trac2000.ueci.com> Date: 27 Jun 91 21:07:23 GMT References: <1991Jun26.121056.19420@nntp.hut.fi> Organization: UE&C - Catalytic in Philadelphia, PA Lines: 19 In article <1991Jun26.121056.19420@nntp.hut.fi>, vwa@cs.hut.fi writes: > When storing integer information in the sqlda-structure > > sqlda->sqlvar[i].sqldata = malloc (SIZINT) > > and after that executing a prepared INSERT with that structure, > I never get INTEGERS right. > Personnally, I never use "integer" in any of my ESQL/C programs. The "integer" data type is ambiguous across some platforms. I find it better to use "short" or "long" data types. I have a good example of how to use the SQLDA structure if your interested. DAS -- David A. Snyder @ UE&C - Catalytic in Philadelphia, PA UUCP: ..!uunet!trac2000!das INTERNET: das@trac2000.ueci.com