• thanks_shakey_snake
    link
    fedilink
    arrow-up
    35
    arrow-down
    1
    ·
    29 days ago

    Maybe there’s a specific person who keeps doing this and they wrote this error specifically for him.

    • jaybone@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      29 days ago

      You bitwise OR into the higher end bits the user id, in which you have already encoded the user’s gender. (For which you have a util method to extract. )

      • thanks_shakey_snake
        link
        fedilink
        arrow-up
        3
        ·
        29 days ago

        What the hell kind of second-rate DBMS doesn’t encode gender into its primary keys SMDH!!