isbinary returns one if its argument is of type VARBINARY, zero otherwise.
isbinary(0x1213) -> 1 (Yes it is a VARBINARY)