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

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 8.0.17-8, 8.0.18-9, 8.0.19-10, 8.0.20-11
    • 8.0.21-12
    • Data Masking

    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

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

              Dates

                Created:
                Updated:
                Resolved:

                Smart Checklist