Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-16316

Replace INT_ITEM references in the code behind ORDER, LIMIT, PROCEDURE clause

    Details

      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

            Activity

              People

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: