• blackn1ght@feddit.uk
      link
      fedilink
      English
      arrow-up
      15
      ·
      edit-2
      12 hours ago

      It’s baffling to me. Maybe I’m just used to using “modern” frameworks, but the only way this could be an issue is if you literally check if the string value equals “null” and then replace it with a null value.

      lastName = lastName.ToUpper() == "NULL" ? null : lastName;

      Either that or the database has some bug where it’s converting a string value of “null” into a null.

      • Slaxis@discuss.tchncs.de
        link
        fedilink
        English
        arrow-up
        7
        ·
        11 hours ago

        That is something I’ve had to do on rare occasions because people set up and store info in stupid ways…