[MDEV-16316] Replace INT_ITEM references in the code behind ORDER, LIMIT, PROCEDURE clause Created: 2018-05-29  Updated: 2018-05-29  Resolved: 2018-05-29

Status: Closed
Project: MariaDB Server
Component/s: Data types
Fix Version/s: 10.4.0

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed
blocks MDEV-14630 Replace {STRING|INT|REAL|DECIMAL|DATE... Closed

 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.


Generated at Thu Feb 08 08:28:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.