by pavel_lishin · 9y ago · 0 comments
Nice, he got the human-equivalent of "Null", the magic name that breaks certain reservation systems.
I promptly ordered NULL as an experiment. With any luck, the parking ticket database throws a fit.
Wow, even the URL looks funny.
I can't blame them. Superheroes usually don't treat their cars well.
sqlstring = "SELECT 1 = NULL;"
returnValue = callDB(sqlstring)
if returnValue == "NULL"
// here you go...
end
A solution would be to let the database handle NULL-values: sqlstring = "SELECT 1 IS NULL;" "" + null == "null"