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

Modify gen_range() to support negative numbers in Data Masking

    XMLWordPrintable

    Details

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

      Description

      Upstream:

      https://dev.mysql.com/doc/refman/8.0/en/data-masking-functions.html#udf_gen-range

      mysql> SELECT gen_range(100, 200), gen_range(-1000, -800);
      +---------------------+------------------------+
      | gen_range(100, 200) | gen_range(-1000, -800) |
      +---------------------+------------------------+
      |                 177 |                   -917 |
      +---------------------+------------------------+

      PS:

      mysql> SELECT gen_range(100, 200), gen_range(-1000, -800);
      +---------------------+------------------------+
      | gen_range(100, 200) | gen_range(-1000, -800) |
      +---------------------+------------------------+
      |                 198 |             4294966357 |
      +---------------------+------------------------+
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Smart Checklist