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

PASSWORD(NULL) returns empty string, should be NULL according to documentation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.0, 10.1, 10.3.4
    • N/A
    • OTHER

    Description

      MariaDB [test]> select password(null);
      +----------------+
      | password(null) |
      +----------------+
      |                |
      +----------------+
      1 row in set (0.00 sec)

      https://mariadb.com/kb/en/mariadb/password

      Calculates and returns a hashed password string from the plaintext password str, or NULL if the argument was NULL.

      Same in MySQL manual: http://dev.mysql.com/doc/refman/5.7/en/encryption-functions.html#function_password

      MySQL 5.6/5.7 are also affected.

      Attachments

        Activity

          People

            greenman Ian Gilfillan
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.