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

The first character in column name has lowercase instead of uppercase in view created on table " mysql.user"

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL), 10.11
    • 10.4.32
    • Views

    Description

      Test:

      create view v1 as select host,user from mysql.user where (host,user) = ('localhost','test');
      select * from v1;
      drop view v1;
      

      Expected result:

      Host	User
      

      Actual result:

      host	user
      

      Problem appeared after MDEV-17658

      Attachments

        Issue Links

          Activity

            It looks like SELECT take the name from the field, but VIEW takes name from SELECT list name

            sanja Oleksandr Byelkin added a comment - It looks like SELECT take the name from the field, but VIEW takes name from SELECT list name

            create view v1 as select Host,User from mysql.user where (host,user) = ('localhost','test');
            select * from v1;
            Host	User
            drop view v1;
            

            so it is how you name it and everything is OK

            sanja Oleksandr Byelkin added a comment - create view v1 as select Host,User from mysql.user where (host,user) = ('localhost','test'); select * from v1; Host User drop view v1; so it is how you name it and everything is OK

            People

              sanja Oleksandr Byelkin
              lstartseva Lena Startseva
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.