Roland Bouman wrote:
Hi!

I'm sorry I can't comment on the inheritance issue. However, I would
like to throw in my 2 cts regarding the naming of the type.

This maybe a bikeshed thing, but I think it would be better to name
the type exactly after what it is capable of. I mean, HIRES probably
means "high resolution", but the problem with that type of naming
schemas is that they age. What is nowadays considered "high" may be
considered "medium" or "low" in the future.

So, I would rather suggest to go for TIMESTAMP_NS_PRECISION or
TIMESTAMP_NANOS or even TIMESTAMP_NANOSECOND_PREC or
TIMESTAMP_NANOSECOND_PRECISION because that clearly and unambiguously
(?) declares the scope of the type.

Sure, I have no problem with that. Actually, that's why I was kind of shying away from Baron's suggestion of MICROTIMESTAMP and more towards a generic name, but like I said, I have no problem with changing any names :)

Cheers,

Jay

kind regards,

Roland

On Mon, Dec 29, 2008 at 3:39 PM, Jay Pipes <[email protected]> wrote:
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






_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to