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

Using MATCH returns NULL for Virtual Column

    XMLWordPrintable

Details

    Description

      CREATE TABLE `simple_virtual_column` (
        `a` varchar(255) DEFAULT NULL,
        `b` varchar(255) GENERATED ALWAYS AS (`a`) VIRTUAL,
        FULLTEXT KEY `a` (`a`)
      ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
       
      INSERT INTO simple_virtual_column (a) VALUES ('test');
      SELECT * FROM simple_virtual_column WHERE MATCH(a) AGAINST('test');
       
      | test | NULL |
       
      SELECT * FROM simple_virtual_column;
       
      |test | test |
      

      Attachments

        Issue Links

          Activity

            People

              nikitamalyavin Nikita Malyavin
              claudio.nanni Claudio Nanni
              Votes:
              1 Vote for this issue
              Watchers:
              7 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.