[DB-SIG] pb with Datetime

Horst Herb subscriptions@gnumed.net
Wed, 18 Sep 2002 11:33:39 +1000


Dave Cole wrote:

> You can tell the Sybase module not to return an mxDateTime object for
> DATETIME columns (although I can't work out why you would do that).

Why? Usually you display data returned form a query by using 
str(column). If the object is mxDateTime it will always return the time 
as well formatted into the string, even if the original data type was 
just date and not datetime. Thus, you need a case switch every time you 
want to display the data - which is a pain.

Horst