https://dev.mysql.com/doc/refman/5.1/en/problems-with-null.html
To search for column values that are NULL, you cannot use an expr = NULL test. The following statement returns no rows, because expr = NULL is never true for any expression:
mysql> SELECT * FROM my_table WHERE phone = NULL;
To look for NULL values, you must use the IS NULL test. The following statements show how to find the NULL phone number and the empty phone number:
mysql> SELECT * FROM my_table WHERE phone IS NULL;
The problem is, when we do a setString("Login", null) the mysql java driver translates it to "where Login = null" instead of "where Login IS NULL".
https://dev.mysql.com/doc/refman/5.1/en/problems-with-null.html
The problem is, when we do a setString("Login", null) the mysql java driver translates it to "where Login = null" instead of "where Login IS NULL".