Comment on Life isn't easy if your last name is 'Null' as it still breaks database entries the world over

<- View Parent
blackn1ght@feddit.uk ⁨1⁩ ⁨week⁩ 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 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.

source
Sort:hotnewtop