>>>  If I may add, I always found the practice of comparing boolean values
to
>>>  "true" or to "false" rather funny. You take a boolean value, and
compare it
>>>  to 'true'. You get a boolean result that is the same:
>>>  
>>>  Truth table of "new" = 't':
>>>  
>>>      new    new = true
>>>      true   true
>>>      false  false
>>>  
>>>  So... isn't it just slightly more reasonable to use:
>>>  
>>>  SELECT * from chargehistory WHERE "new";
Definitely.  However, if you ever use something like Visual Basic, you learn
the hard way not to do this, because it doesn't have a native boolean type.
It tries to hack an integer into a boolean, and hacks the bitwise AND, OR,
and NOT operators to perform like logical ones.  This works great most of
the time, but to find it when it isn't working is a nightmare.

Of course, in a real environment, where programs work like they should, this
shouldn't happen.

MikeA...

Reply via email to