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

Frediano Ziglio freddyz77 at tin.it
Wed Dec 8 02:43:02 EST 2004


> > 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;
}
                                                                                
CS_RETCODE
cs_loc_drop(CS_CONTEXT * ctx, CS_LOCALE * locale)
{
        return CS_SUCCEED;
}
                                                                                
CS_RETCODE
cs_locale(CS_CONTEXT * ctx, CS_INT action, CS_LOCALE * locale, CS_INT
type, CS_VOID * buffer, CS_INT buflen, CS_INT * outlen)
{
        return CS_SUCCEED;
}

freddy77





More information about the FreeTDS mailing list