Add Support for MEDIUM_BLOB

I've been using this code in production for a few months now.  I had a weird function in some SQL that was producing a MEDIUM_BLOB (which was not handled by the changed function).  I couldn't find an easy way to add a  spec for this change, but would be happen to resubmit with test code if you can point me to a proper spec to modify.