@[email protected] to [email protected]English • 15 days agoLife isn't easy if your last name is 'Null' as it still breaks database entries the world overwww.pcgamer.comexternal-linkmessage-square76fedilinkarrow-up1419arrow-down16cross-posted to: technology
arrow-up1413arrow-down1external-linkLife isn't easy if your last name is 'Null' as it still breaks database entries the world overwww.pcgamer.com@[email protected] to [email protected]English • 15 days agomessage-square76fedilinkcross-posted to: technology
minus-square@[email protected]linkfedilinkEnglish21•edit-214 days agoIt’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.
minus-square@[email protected]linkfedilinkEnglish10•14 days agoThat is something I’ve had to do on rare occasions because people set up and store info in stupid ways…
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
.That is something I’ve had to do on rare occasions because people set up and store info in stupid ways…