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

Cleanup in check_table_name() and check_db_name()

Details

    Description

      The code in check_table_name() and check_db_name() looks confusing.
      Let's do minor cleanups:

      • Rename the parameter check_for_path_char to a more self-descriptive disallow_path_chars
      • Rename the variable name_length in check_table_name() to a more self-descriptive char_length.
      • Fix the while loop in check_table_name() into a for loop and replace multiple char_length+ (the former name_length+) statements to a signle increment statement in the for loop header.

      Attachments

        Issue Links

          Activity

            bar Alexander Barkov created issue -
            bar Alexander Barkov made changes -
            Field Original Value New Value
            bar Alexander Barkov made changes -
            issue.field.resolutiondate 2023-08-18 12:08:47.0 2023-08-18 12:08:47.206
            bar Alexander Barkov made changes -
            Fix Version/s 11.3.0 [ 29302 ]
            Fix Version/s 11.3 [ 28565 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            bar Alexander Barkov made changes -
            Assignee Alexander Barkov [ bar ]

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.