Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
Description
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:
if (order_item->type() == Item::INT_ITEM && order_item->basic_const_item() && |
!from_window_spec)
|
if (item->type() != Item::INT_ITEM) |
{
|
my_error(ER_WRONG_SPVAR_TYPE_IN_LIMIT, MYF(0));
|
if (!(*param->item)->fixed && (*param->item)->fix_fields(thd, param->item)) |
{
|
DBUG_PRINT("info", ("fix_fields() for the first parameter failed")); |
goto err; |
}
|
There are more similar pieces.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed
-
MDEV-14630 Replace {STRING|INT|REAL|DECIMAL|DATE}_ITEM to CONST_ITEM
- Closed