Don't copy bytes if types are binary comparible
Fix for upsert select with autocommit on when run client side