in reply to Re: datetimestamp faster/golf/prettier
in thread datetimestamp faster/golf/prettier

I'm using MySQL and i use the column with the timestamp as a (shared) primary key. I tried to insert a NULL and it gave me a nice error.
  • Comment on Re^2: datetimestamp faster/golf/prettier

Replies are listed 'Best First'.
Re^3: datetimestamp faster/golf/prettier
by dragonchild (Archbishop) on Jul 20, 2004 at 15:03 UTC
    I have a few questions:
    • Which version of MySQL? The handling of TIMESTAMP changes in v4.1.0 and 4.1.2
    • What error are you seeing?
    • Can you show me the structure of the table and the code used to insert the value?

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested

      I'm very sorry. It is Class:DBI that gave me the error:
      Can't create Doc::Node object with null primary key columns () at ./db +itest.pl line 38