Earlier quoted context omitted.
Any time "$var" is interpolated without check into an INSERT, and any maintainer finds it easier to just check for null as a string rather than ask a DB admin or committee to update the DB after a lot of red tape and risk assessment. So... very often.
Guess I’ll change my name to ‘;drop table customers then ;)
When your last name is Null, nothing works
21–30 of 310 posts
Re: When your last name is Null, nothing works
#22Re: When your last name is Null, nothing works
#23Who's checking if a string matches "null" rather than is null!?
Re: When your last name is Null, nothing works
#24The number of times that a website rejects my first name because it has a hyphen in it, even in 2025, is astounding. I get told all manner of things by support staff, like "just leave it out" as if it's just not an important part of my name or anything.
Re: When your last name is Null, nothing works
#25Who's checking if a string matches "null" rather than is null!?
Plenty of systems represent all values as strings, and "null" is the obvious (although probably not the best ) way to represent a null value as a string.
Re: When your last name is Null, nothing works
#26Earlier quoted context omitted.
Any time "$var" is interpolated without check into an INSERT, and any maintainer finds it easier to just check for null as a string rather than ask a DB admin or committee to update the DB after a lot of red tape and risk assessment. So... very often.
Guess I’ll change my name to ‘;drop table customers then ;)
Re: When your last name is Null, nothing works
#27Earlier quoted context omitted.
Guess I’ll change my name to ‘;drop table customers then ;)
You can make a good case to spend time sanitising requests to avoid catastrophic failure, but the "null" problem is one that quickly becomes a lot of work and risk to fix after the fact, for no obvious benefit except what's seen as the pedantry of some nerd, so it gets ranked all the way at the back of the list... until someone named Null comes along, and probably still even then.
Re: When your last name is Null, nothing works
#28Re: When your last name is Null, nothing works
#29For many years, my mother's proper legal name on her birth certificate was the empty string. This wasn't usually a problem before computers as she'd go by a given name instead, even on government paperwork. She started having issues with systems being unable to process her information in the late 90s and early 2000s. Background checks would fail, passports couldn't be issued, and so on. She eventually had it changed,…
There must be an interesting backstory here. Did her parents deliberately not name her? Did they forget?
Re: When your last name is Null, nothing works
#30Earlier quoted context omitted.
You can make a good case to spend time sanitising requests to avoid catastrophic failure, but the "null" problem is one that quickly becomes a lot of work and risk to fix after the fact, for no obvious benefit except what's seen as the pedantry of some nerd, so it gets ranked all the way at the back of the list... until someone named Null comes along, and probably still even then.
I disagree. If your system is failing to correctly type check strings during SQL interpolation, you should probably kill it with fire.