RDBMS will raise an error if you use LIKE with a non-char field type.

Question is whether you need to catch this or not - please just think about it, don't fix anything in this regard yet.