|
|
sybperl-l Archive
Up Prev Next
From: "Avis, Ed" <avised at kbcfp dot com>
Subject: RE: DBD::Sybase 1.05_01 test failure
Date: May 5 2005 4:26PM
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
|