Uploaded image for project: 'Percona Server for MySQL'
  1. Percona Server for MySQL
  2. PS-7321

Correct Random Number Generator to create only 15 or 16 digit number in Data Masking

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 8.0.19-10, 8.0.20-11
    • Fix Version/s: 8.0.21-12
    • Component/s: Data Masking
    • Labels:

      Description

      mysql> SELECT mask_pan(gen_rnd_pan());
      +-------------------------+
      | mask_pan(gen_rnd_pan()) |
      +-------------------------+
      | XXXXXXXXXXXX7871        |
      +-------------------------+
      1 row in set (0.00 sec)mysql> SELECT mask_pan(gen_rnd_pan());
      +-------------------------+
      | mask_pan(gen_rnd_pan()) |
      +-------------------------+
      | XXXXXXXXXXXX4808        |
      +-------------------------+
      1 row in set (0.00 sec)mysql> SELECT mask_pan(gen_rnd_pan());
      +-------------------------+
      | mask_pan(gen_rnd_pan()) |
      +-------------------------+
      | 60111451419726510       |
      +-------------------------+
      1 row in set (0.00 sec)mysql> SELECT mask_pan(gen_rnd_pan());
      +-------------------------+
      | mask_pan(gen_rnd_pan()) |
      +-------------------------+
      | XXXXXXXXXXXX2936        |
      +-------------------------+
      1 row in set (0.00 sec)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              satya.bodapati Satya Bodapati
              Reporter:
              satya.bodapati Satya Bodapati
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Smart Checklist