On 16-Jan-2002 Flemming Frandsen wrote:
> This is a patch against DBD::ODBC version 0.30, as I found it on CPAN,
> it:
> 1) Adds support for building directly against the sapdb odbc interface
> on unix.
> 2) Removes annoying message about "SQLDriverConnect unsupported."
> 3) Converts Makefile.PL to unix linefeeds, as a side effect.
>
> If you use this and you want to create triggers then use this option:
> $dbh->{odbc_ignore_named_placeholders} = 1;
>
> It allows you to use :new.field and :old.field in your triggers,
> otherwise those would be named placeholders.
>
> --
> Regards Flemming Frandsen aka. Dion/Swamp http://dion.swamp.dk
At the risk of stirring up an argument, I don't think the part of the this patch
including #ifdef DBD_ODBC_NO_SQLDRIVERCONNECT is required. The README for
DBD::ODBC includes this text:
ODBCHOME (Unix only) The dir your driver manager is installed in
If the driver does not export SQLDriverConnect the driver manager will call
SQLConnect. The only reason for including this #ifdef is if DBD::ODBC is built
directly with a driver. The job of deciding what functions a driver exports
should be left to the driver manager in my opinion. There are two source
distributions for driver managers I am aware of and both should handle this.
Martin
--
Martin J. Evans
Easysoft Ltd, UK
Development