in reply to Re: dbix::simple & varbinary(MAX)
in thread dbix::simple & varbinary(MAX)

I don't know where you got that 1.16 distribution from because the diff does not make sense against 1.16 code at that point which already contains:

case SQL_VARBINARY: case SQL_BINARY: fbh->ftype = SQL_C_BINARY; break; #if defined(WITH_UNICODE) case SQL_WCHAR: case SQL_WVARCHAR: fbh->ftype = SQL_C_WCHAR; /* MS SQL returns bytes, Oracle returns characters ... */ fbh->ColDisplaySize*=sizeof(WCHAR); fbh->ColLength*=sizeof(WCHAR); break; #endif /* WITH_UNICODE */

However, the salient point of it is setting ColDisplaySize.

The reason why it is not in DBD::ODBC is no one has told the current maintainer about it - namely me - I just came across this thread. This will be included in 1.17.

Replies are listed 'Best First'.
Re^3: dbix::simple & varbinary(MAX)
by Anonymous Monk on Aug 27, 2008 at 02:30 UTC
    > This will be included in 1.17. I am soooo glad to read this! I am sorry I was a newbie at that time and just posted my patch to DBI-users email list so that slipped from your radar. http://www.mail-archive.com/dbi-users@perl.org/msg26962.html Anyway, I can't wait to see this included! Thanks!
      I was not the maintainer back then. Anyway, a developer release 1.16_4 has been uploaded to CPAN (and should appear soon) which fixes the issue you reported here (namely varXXX(max types)). In the mean time you can get it from ftp://ftp.easysoft.com/pub/DBD-ODBC-1.16_4.tar.gz