http://qs321.pair.com?node_id=374702


in reply to Expand Class::DBI Field to DateTime Object

Be careful that you don't do this to fields which are primary keys, as that'll make Class::DBI most unhappy (that one took a good while until I tracked down the admonition against doing so in the docs).

Replies are listed 'Best First'.
Re^2: Expand Class::DBI Field to DateTime Object
by hardburn (Abbot) on Jul 15, 2004 at 17:25 UTC

    I'm a little skeptical of using a date as a primary key (unless it's a composite one), but I'm sure someone out there could think up a reason.

    Actually, I'm against the idea of using any meaningful data as a primary key. Auto-incremented fields are much safer.

    ----
    send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.