News for hackers. Stuff that matters.
Re:Handling Null Values in Postgres by Thaxll on Thursday March 05, 2020 @04:57PM (#22498790)
How do you handle an empty string vs a string that was never set?
Re:Handling Null Values in Postgres by ibrar74 on Friday March 06, 2020 @12:39PM (#22505543)
What do you mean by never set? In the database, you can either enter a string (empty or non-empty) or NULL in a column. There no such thing called never set.
Re:Handling Null Values in Postgres by Thaxll on Tuesday March 10, 2020 @06:54PM (#22540790)
That's my question, if you have a field that represents something and that field is a string that can be empty, null or contains anny string, if you don't use NULL how do you make the difference between an empty string and a null string ( user set "" vs never set anything )