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

Query cache makes virtual column function RAND() non-random

    XMLWordPrintable

Details

    Description

      10.3 02e85aea

      set global query_cache_type=1;
      set query_cache_type=1;
      create table t (a int, b float as (rand()));
      insert into t (a) values (1);
      select * from t;
      a	b
      1	0.181048
      select * from t;
      a	b
      1	0.181048
      set query_cache_type=0;
      select * from t;
      a	b
      1	0.437779
      

      Attachments

        Activity

          People

            serg Sergei Golubchik
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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