freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Kenneth Knowles <kknowles AT berkeley.edu>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Hello World help
- Date: Wed, 17 Mar 2004 08:51:16 -0800
On Wed, Mar 17, 2004 at 09:06:18AM -0000, Thompson, Bill D (London) wrote:
> have a look at <freetds>/src/ctlib/unittests/t0002.c , which tries to do
> pretty much what you are trying to do.
>
> Off the top of my head, I would say you need to do more with the output
> DATAFMT structure before binding, e.g.:
>
> output.format = CS_FMT_NULLTERM;
> output.maxlength = 100;
> output.count = 1;
> output.locale = NULL;
Thanks, those lines - in the place where t0002.c had them - solved it. I
figured the dataformat was an output variable, not input, since it was passed
by
pointer.
Kenn
-
[freetds] Hello World help,
Kenneth Knowles, 03/16/2004
- Re: [freetds] Hello World help, Kenneth Knowles, 03/16/2004
- <Possible follow-up(s)>
-
RE: [freetds] Hello World help,
Thompson, Bill D (London), 03/17/2004
- Re: [freetds] Hello World help, Kenneth Knowles, 03/17/2004
Archive powered by MHonArc 2.6.24.