[CDBI] Class::DBI::Sybase patch to allow TEXT columns for create/update

Mike W theothermike at gmail.com
Thu Sep 1 21:24:33 BST 2005


Hi Class-DBI,

I've recently had to deal with some tables in Sybase with TEXT type
columns in them.  Apparently the Sybase libraries don't allow
parameter binding for those types of columns, so neither does
DBD::Sybase.

Attached is a patche to deal with this limitation.  Basically,
CDBI::Sybase now removes any TEXT columns from the insert and update
clauses parameter binding, and instead embeds them with $dbh ->
quote() from DBI.

I tried emailling the maintainer of CDBI::Sybase with a patch, but I
got a bounce.  Anyone know who the maintainer is now?

--mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Sybase.pm
Type: application/octet-stream
Size: 5028 bytes
Desc: not available
Url : http://lists.digitalcraftsmen.net/mailman/private/classdbi/attachments/20050901/5a5a30fd/Sybase.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class-dbi-sybase.0.4.unified.patch
Type: application/octet-stream
Size: 5263 bytes
Desc: not available
Url : http://lists.digitalcraftsmen.net/mailman/private/classdbi/attachments/20050901/5a5a30fd/class-dbi-sybase.0.4.unified.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: class-dbi-sybase.0.4.patch
Type: application/octet-stream
Size: 4564 bytes
Desc: not available
Url : http://lists.digitalcraftsmen.net/mailman/private/classdbi/attachments/20050901/5a5a30fd/class-dbi-sybase.0.4.obj


More information about the ClassDBI mailing list