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

Dead code in stored_field_cmp_to_item()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.1
    • 10.1.8
    • Optimizer
    • None
    • 10.1.8-4

    Description

      int stored_field_cmp_to_item(THD *thd, Field *field, Item *item)
      {
        if (field->cmp_type() == TIME_RESULT)
        {
          ..
          return my_time_compare(&field_time, item_time_cmp);
        }
        if (res_type == STRING_RESULT)
        {
          ...
          if (field_type == MYSQL_TYPE_DATE || field_type == MYSQL_TYPE_DATETIME ||
              field_type == MYSQL_TYPE_TIMESTAMP)
          {
            // This code is dead, because all temporal types are handled
            //in the first branch for TIME_RESULT
             ...
             return my_time_compare(&field_time, &item_time);
          }
          ..
        }
      }

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.