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

Cannot use DEFAULT function in a view

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1
    • 10.1
    • Views

    Description

      create table t1 (i int default 0);
      insert into t1 values (1);
      select default(i) from t1;
      create view v1 as select default(i) from t1;
      

      MariaDB [test]> create view v1 as select default(i) from t1;
      ERROR 1143 (42000): create view command denied to user 'root'@'localhost' for column 'default(i)' in table 'v1'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.