cm0002@lemmy.world to Technology@lemmy.worldEnglish · 2 days agoLife isn't easy if your last name is 'Null' as it still breaks database entries the world overwww.pcgamer.comexternal-linkmessage-square75fedilinkarrow-up1405arrow-down16
arrow-up1399arrow-down1external-linkLife isn't easy if your last name is 'Null' as it still breaks database entries the world overwww.pcgamer.comcm0002@lemmy.world to Technology@lemmy.worldEnglish · 2 days agomessage-square75fedilink
minus-squareblackn1ght@feddit.uklinkfedilinkEnglisharrow-up19·edit-21 day 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-squareSlaxis@discuss.tchncs.delinkfedilinkEnglisharrow-up9·1 day 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…