• Sachin's avatar
    MDEV-23264 Unique blobs allow duplicate values upon UPDATE · 10132ad2
    Sachin authored
    Problem:-
      We are able to insert duplicate value in table because cmp_binary_offset
      is not able to differentiate between NULL and empty string. So
      check_duplicate_long_entry_key is never called and we don't check for
      duplicate.
    Solution
      Added a if condition with is_null() on field which can differentiate
      between NULL and empty string.
    10132ad2
long_unique_bugs.result 10.5 KB