Skip to Content.
Sympa Menu

freetds - RE: [freetds] Hello World help

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Thompson, Bill D (London)" <bill_d_thompson AT ml.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Hello World help
  • Date: Wed, 17 Mar 2004 09:06:18 -0000

Ken,

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.

Bill
> -----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.
<http://www.ml.com/email_terms/>

==============================================================================





Archive powered by MHonArc 2.6.24.

Top of Page