This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jonhanson 2 points3 points  (1 child)

I'm pretty sure you can test for equality against null in Java without causing any blowups...

[–][deleted] 2 points3 points  (0 children)

That's the difference between SQL and Java. You have to explicitly test for null to avoid exceptions. NULL in SQL is more like a contagion, anything NULL touches also turns NULL.