Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Expand Class::DBI Field to DateTime Object

by Fletch (Chancellor)
on Jul 15, 2004 at 15:59 UTC ( #374702=note: print w/replies, xml ) Need Help??


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).

  • Comment on Re: Expand Class::DBI Field to DateTime Object

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://374702]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2022-01-20 14:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (56 votes). Check out past polls.

    Notices?