[freetds] Hello World help
Thompson, Bill D (London)
bill_d_thompson at ml.com
Wed Mar 17 04:06:18 EST 2004
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;
that might help.
If not , if you generate a TDSDUMP by setting "export TDSDUMP=<filename>" or
"setenv TDSDUMP <filename>"
that should help us find the problem.
> -----Original Message-----
> From: Kenneth Knowles [SMTP:kknowles at berkeley.edu]
> Sent: 16 March 2004 21:30
> To: freetds at lists.ibiblio.org
> Subject: Re: [freetds] Hello World help
> Sorry, forgot to attach the files, here they are.
> << File: dblib.c >> << File: db_ct.c >> << File: ATT632944.txt >>
If you are not an intended recipient of this e-mail, please notify
the sender, delete it and do not read, act upon, print, disclose,
copy, retain or redistribute it.
Click here for important additional terms relating to this e-mail.
More information about the FreeTDS