RE: DBD::Sybase 1.05_01 test failure

"Avis, Ed" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <B6950B05C2FB1A418290414131B118B964C521@EXLN1-VS1.london.kbcfp.com>
Ed Avis wrote:

>I tested the current beta release 1.05_01 of DBD::Sybase.  The test
>t/xblk.t failed because of
>
>DBD::Sybase::db prepare warning: Server message number=4847 
>severity=16 state=1 line=1 server=IT_LN text=BCP insert 
>operation is disabled when LONGCHAR capability is turned on 
>and data size is changing between client and server character 
>sets since BCP does not support LONGCHAR yet.
>
>This is because my client (Linux RHEL 3) is using UTF-8.  It's fixed by
>setting LC_ALL to C.

My earlier patch for this was not correct (but please apply the 90% of
it that concerns not dying when $sth is undef).  The right way is

    BEGIN {
        # Try to avoid charset problems.
        $ENV{LC_ALL} = 'C';
        use_ok('DBI');
        use_ok('DBD::Sybase');
    }

With this the test passes.

-- 
Ed Avis <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.