File: README.freetds

package info (click to toggle)
libdbd-sybase-perl 1.00-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 448 kB
  • ctags: 244
  • sloc: ansic: 3,478; perl: 1,735; makefile: 56
file content (61 lines) | stat: -rw-r--r-- 2,085 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
$Id: README.freetds,v 1.2 2003/04/03 19:07:00 mpeppler Exp $

Using DBD::Sybase with FreeTDS
==============================

DBD::Sybase 1.00 or later works reasonably well with FreeTDS 0.61,
but some capabilities are limited or not available.

Build process:
--------------

FreeTDS normally installs in /usr/local, with the libraries in 
/usr/local/lib and the include files in /usr/local/include. This
location is assumed below.

To build DBD::Sybase you need to set the SYBASE environment variable
to /usr/local. When you now run "perl Makefile.PL" you will get
warnings for a few missing libraries:
	Note (probably harmless): No library found for -lcs
	Note (probably harmless): No library found for -lsybtcl
	Note (probably harmless): No library found for -lcomn
	Note (probably harmless): No library found for -lintl
This is OK because FreeTDS doesn't package the functions in the
same libraries as Sybase.

The "make test" process will fail for a number of tests:

Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/exec.t       0   139    ??   ??       %  ??
t/main.t                  16    2  12.50%  13-14
t/xblob.t                  6    2  33.33%  5-6
13 subtests skipped.

This is expected.

Missing Features:
-----------------

* ?-style placeholders are not supported.
* Setting $dbh->{LongReadLen} doesn't work
  Use $dbh->do("set textsize <value>") instead.
* The special text/image handling functions don't work
  (i.e. ct_fetch_data(), etc).
* The $dbh->{syb_row_count} attribute doesn't work.
  Use $dbh->do("set rowcount <value>") instead.
* The $dbh->{syb_quoted_identifier} attribute doesn't work.
  Use $dbh->do("set quoted_identifier <value>") instead.

Bugs:
-----

FreeTDS 0.61 has a bug when executing queries that return 0 rows, 
which manifests itself when trying to do a fetchrow_hashref()
after such a query with the following error:

    Can't get DBI::st=HASH(0x811cfa8)->{NAME}: unrecognised attribute at...

This is fixed in the 0.62-dev version of FreeTDS.