Skip to Content.
Sympa Menu

freetds - Re: [freetds] Re: make test of DBD-Sybase-1.04_15 (using freetds 0.62.4

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Re: make test of DBD-Sybase-1.04_15 (using freetds 0.62.4
  • Date: Wed, 08 Dec 2004 09:27:33 +0100

On Wed, 2004-12-08 at 08:43, Frediano Ziglio wrote:
> > > Here's what I got:
> > >
> > > PERL_DL_NONLAZY=1 /bin/perl "-MExtUtils::Command::MM" "-e"
> > > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
> > > t/autocommit....cs_config(CS_LOC_PROP) failed at
> > > /usr/local/lib/perl5/5.8.3/sun4-solaris/DynaLoader.pm line 249.
> > > FAILED tests 3-4
> >
> > Hmmm - that's a new one. I've changed the way the CS_LOCALE struct is
> > allocated and used, and in when used with Sybase libs this works
> > normally.
> >
> > In previous versions the locale was configured for each connection, now
> > I store the locale in the context and share it among connections that
> > use the same configuration (same charset, etc)
> >
> > I guess FreeTDS doesn't (yet) allow us to store the CS_LOCALE data in
> > the CS_CONTEXT:
> >
> > if(retcode == CS_SUCCEED) {
> > if((retcode = cs_config(context, CS_SET, CS_LOC_PROP, locale,
> > CS_UNUSED, NULL)) != CS_SUCCEED) {
> > warn("cs_config(CS_LOC_PROP) failed");
> > }
> >
> > Any comments from FreeTDS?
> >
> >
>
> It seems that locale are not so implemented...
>
> CS_RETCODE
> cs_loc_alloc(CS_CONTEXT * ctx, CS_LOCALE ** locptr)
> {
> return CS_SUCCEED;
> }

Right.

But ct_con_props(connection, CS_SET, CS_LOC_PROP) returns CS_SUCCEED
(even if it's a no-op) whereas cs_config(context, CS_SET, CS_LOC_PROP)
returns CS_FAIL.

Michael
--
Michael Peppler - mpeppler AT peppler.org - http://www.peppler.org/
Sybase DBA/Developer
Available for contract work - http://www.peppler.org/resume.html





Archive powered by MHonArc 2.6.24.

Top of Page