Page MenuHomePhabricator

[keyserver] Cast NULLs in UNION SELECT
ClosedPublic

Authored by ashoat on Jul 13 2022, 6:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Sep 25, 2:22 AM
Unknown Object (File)
Mon, Sep 16, 1:40 AM
Unknown Object (File)
Aug 27 2024, 3:00 PM
Unknown Object (File)
Aug 22 2024, 1:36 AM
Unknown Object (File)
Aug 19 2024, 9:42 AM
Unknown Object (File)
Aug 18 2024, 5:29 PM
Unknown Object (File)
Aug 16 2024, 3:46 AM
Unknown Object (File)
Jul 28 2024, 6:03 AM

Details

Summary

See comment on Linear. This fixes a bug where we were seeing strings where we previously saw numbers.

Depends on D4528

Test Plan
  1. I made sure the syntax was valid on both MySQL 5.7 and MariaDB 10.8 based on docs
  2. I tested with MariaDB 10.8
  3. I made sure the issue only occured when merging in NULL in cases where you aren't expecting a string by testing queries
  4. I git grepd through the codebase to make sure this was the only place we were doing that

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/mariadb
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Looks good, testing our DB queries to make sure output is held constant would probably be good to do someday

This revision is now accepted and ready to land.Jul 14 2022, 9:51 AM
This revision was automatically updated to reflect the committed changes.