3 ms·
Lots of programming languages treat 0 and null as the same thing. Numeric database columns, however, do not. This has resulted, at one of my employers, of a mix
by cratermoon 6y ago
Lots of programming languages treat 0 and null as the same thing. Numeric database columns, however, do not. This has resulted, at one of my employers, of a mix of different languages and systems treating 0 and equal to null. Sometimes, but not always. That inconsistency is a source of a fair number of bugs.
- earthboundkid 6y agoNumbers are totally different than strings. 0 is a distinct number in a way that blank is not a distinct string.