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

Split Item_equal::add_const() into a virtual method in type_handler()

    XMLWordPrintable

Details

    Description

      The method Item_equal::add_const() has this code:

      switch (Item_equal::compare_type_handler()->cmp_type()) {
      

      This is not friendly for user data type plugins, because user data types will need their own value comparison implementation, different from the ones for the built-in data types.

      This task is to split this swith into a new virtual method in Type_handler with approximately this API:

      virtual bool Item_eq_value(THD *thd, Item *a, Item *b) const;
      

      Attachments

        Issue Links

          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.