On Mon, 2003-11-17 at 16:06, Ian Burrell wrote:
> I am trying to install DBD::Sybase 1.01 on Red Hat 7.3 to connect with a
> SQL Server 2000 database. I am using FreeTDS 0.61 with the RPMs from
> freetds.org.
>
> I appended the output from "make test". Does anyone know what is
> causing the problem? The t/xblob.t test either does a "Out of memory"
> or "Segmentation fault" which is worrying.
These results are all to be expected - FreeTDS is missing support for a
number of ClientLibrary features.
> t/exec..........ct_param() failed! at t/exec.t line 37.
> Use of uninitialized value in numeric ne (!=) at t/exec.t line 39.
> ct_param() failed! at t/exec.t line 60.
FreeTDS doesn't support the ct_param() call, or executing stored
procedures as RPC commands (yet).
> t/fail..........FAILED tests 2, 5, 10, 12
> Failed 4/13 tests, 69.23% okay (less 3 skipped tests: 6 okay,
> 46.15%)
MS-SQL behaves differently from Sybase wrt certain constraints and how
it handles errors in multi-statement requests.
> t/main..........Setting of CS_OPT_TEXTSIZE failed. at t/main.t line 119.
This means that setting $dbh->{LongReadLen} = <some value> does NOT
work. You have to use $dbh->do("set textsize = <somevalue>"); instead.
> t/xblob.........Use of uninitialized value in print at t/xblob.t line 53.
> Use of uninitialized value in print at t/xblob.t line 56.
> Setting of CS_OPT_TEXTSIZE failed. at t/xblob.t line 60.
> Out of memory!
The "out of memory" error is due to LongReadLen not getting set as it
should.
That said you should be able to perform normal SQL requests without any
problems.
Michael
--
Michael Peppler Data Migrations, Inc.
[EMAIL PROTECTED] http://www.mbay.net/~mpeppler
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short or
long term contract positions - http://www.mbay.net/~mpeppler/resume.html