Hi Everyone,
I work as a developer on a small development team, and something has annoyed me to the point where I have decided to act...
Oracle does not support a Bit datatype - or indeed anything else that makes obvious sense in true/false scenarios. Undeterred however, before I joined the team my forebears decided to use char(1) fields instead, using a specific letter to denote yes / true. Unfortunately though, our application is used to by people all over the world, and for reasons which frankly defy all my attempts at understanding, the value used varies through localisation.
Yes, I do know that's totally unnecessary for values in the back-end that the user never sees - however...
I've noticed that this practice seems to be getting carried forward into new development, which strikes me as mad - so I am thinking of proposing Number(1,0) for this instead - 0 being considered false / no, anything else being interpretted as true / yes...
Simple question - can anyone think of a reason this might be a bad idea?
While we're about it, does anyone know why Oracle doesn't support a simple boolean type? Isn't it a GLARING ommission?
Cheers in anticipation,
Martin.