Hi Jeff,
Attached is a patch to DBD::ODBC 0.28 which makes it work for esodbc (the
Easysoft ODBC-ODBC Bridge) on OpenVMS. I have tested this running Perl 5.6.0,
DBI 1.13 and DBD::DOBC 0.28 on OpenVMS and on a few UNIX platforms with older
Perls.
All the changes are in the esodbc section except the call to
VMS::Filespec::unixify.
By default the VMS compiler counts warnings as an abort condition. As a result
I have added a switch to the compiler to change certain warnings to
informational status, see line:
$opts{CCFLAGS} .=
"/warnings=informational=(outtypelen,ptrmismatch,promotmatchw)"
Unfortunately as the compiler is pretty strict it aborts on the signed/unsigned
char mismatches in calls to ODBC functions and hence the ptrmismatch. If you
fix line 200 in dbdimp.c (fprintf for a short with a format specifier of %s then
the "outtypelen," can be removed from the above line. The promotmatchw
warning seems to be caused by using the old style for function definitions -
not too sure about that one.
I hope you can add this to the next DBD::ODBC. We are getting alot of requests
for OOB on OpenVMS with Perl.
Any problems let me know.
Thanks
Martin
--
Martin J. Evans
Easysoft Ltd, UK
Development
DBD-ODBC-0_28_VMS.PATCH