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

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

    XMLWordPrintable

Details

    • Unexpected results

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 10m
                  10m

                  Git Integration

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