TimeStamp fields being altered by who?
Posted: Fri 01 Sep 2006 16:02
When I create TIMESTAMP fields in my database, I'm noticing that when I save the table changes and then script over the database to export the schema the export contains changes to the timestamp fields that I did not make. For example:
`LastUpdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
The DEFAULT and ON UPDATE clauses and values were not specified by me. And, after reading about the gotchas regarding the handling of TIMESTAMP fields on mysql.com, I want to let my application handle the updates to these fields. But, either the CRLab .NetDirect add-in within Visual Studio is adding these clauses/values or MySQL itself is adding them.
Do you know anything about this type of problem with TIMESTAMP field definitions being altered without our knowledge?
Thanks,
Chris
`LastUpdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP
The DEFAULT and ON UPDATE clauses and values were not specified by me. And, after reading about the gotchas regarding the handling of TIMESTAMP fields on mysql.com, I want to let my application handle the updates to these fields. But, either the CRLab .NetDirect add-in within Visual Studio is adding these clauses/values or MySQL itself is adding them.
Do you know anything about this type of problem with TIMESTAMP field definitions being altered without our knowledge?
Thanks,
Chris