This is a self-containing sub-task for
MDEV-14630, to get rid of INT_ITEM references in the code specifically behind ORDER, LIMIT and PROCEDURE clauses.
We'll replace the code testing Item::type() against ITEM_INT to new methods in Item and Type_handler.
Some examples of the affected code:
There are more similar pieces.