I've been reworking the way that Drizzle handles temporal column types.
So far, I've done 90% of the work to remove mysys/my_time.cc and mysys/drizzle_time.cc. During the course of this work, I've removed the last vestiges of timezones and also made two significant changes:
a) The DATETIME data type should now be able to support MICROSECOND precision in the same 8-byte storage requirements. I've added routines for packing and unpacking 64-bit integers with all the needed parts of the date, including microseconds.
b) I have the workings of a new data type, called TIMESTAMP_HIRES (or whatever, I don't really care about the name), which is an 8 byte column type which stores seconds from Epoch along with a nanosecond precision (basically, it's a storable struct timespec.)
I have now started the work of modifying the Field_* subclasses. Before I modify existing classes, I wanted to first add the new TIMESTAMP_HIRES column type by making a copy of the Field_timestamp class and going from there. However...
Does anyone know why Field_timestamp and Field_datetime inherit from Field_str? I've seen no indication in the comments as to why this is the case... I'd like to get some explanation as to why this is the case before I proceed.
Thanks in advance to anyone listening :) Cheers, Jay _______________________________________________ Mailing list: https://launchpad.net/~drizzle-discuss Post to : [email protected] Unsubscribe : https://launchpad.net/~drizzle-discuss More help : https://help.launchpad.net/ListHelp

