« Oops my fault | Main | Leaving on.. »
March 10, 2004
More blobs
It seems that yet again, another DB2 user created a patch to support BLOBs in PHP. Unfortunately, the patch uses a type, SQL_BLOB, that only exists in DB2 land. The first reaction of course is, well why not preface the code with #if defined(HAVE_IBM_DB2) #endif markers, creating a DB2 specific area. My real issue with this is that it creates DB2 specific functionality, wherein users will expect to see the same functionality on ABC database as well. Yes the code already has plenty of sections that do this, but I'm attempting to slowly remove such requirements from the codebase.
Actually, I don't blame the DB2 community for using this method. Not only does it seem to be clean and relatively easy, it does work for them. I just believe there has to be a way in pure ODBC language to reproduce this so that all may bask in the glory that is BLOB support.
Posted by Dan at March 10, 2004 06:46 AM