cm0002@lemmy.world to Technology@lemmy.worldEnglish · 2 天前Life isn't easy if your last name is 'Null' as it still breaks database entries the world overwww.pcgamer.comexternal-linkmessage-square73fedilinkarrow-up1397arrow-down16
arrow-up1391arrow-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 天前message-square73fedilink
minus-squareblackn1ght@feddit.uklinkfedilinkEnglisharrow-up19·edit-21 天前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.
minus-squareSlaxis@discuss.tchncs.delinkfedilinkEnglisharrow-up9·1 天前That 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…