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

Data masking gen_rnd_us_phone() function has different format compared to upstream

Details

    Description

      Data masking gen_rnd_us_phone() function has different format compared to upstream. Function gen_rnd_us_phone() returns the generated US phone number as described in the docs.

      Looks like our implementation is missing a - between 2nd and 3rd group of numbers:

      mysql> SELECT gen_rnd_us_phone();
      +--------------------+
      | gen_rnd_us_phone() |
      +--------------------+
      | 1-555607-1005      |
      +--------------------+
      1 row in set (0.00 sec)
      
      mysql> SELECT gen_rnd_us_phone();
      +--------------------+
      | gen_rnd_us_phone() |
      +--------------------+
      | 1-555635-5709      |
      +--------------------+
      1 row in set (0.00 sec)
      

      Compared to upstream:

      mysql> SELECT gen_rnd_us_phone();
      +--------------------+
      | gen_rnd_us_phone() |
      +--------------------+
      | 1-555-747-5627     |
      +--------------------+
      

      Attachments

        Issue Links

          Activity

            People

              hrvoje.matijakovic Hrvoje Matijakovic
              hrvoje.matijakovic Hrvoje Matijakovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 4 hours
                  4h

                  Smart Checklist