RE: Timestamp problem in mysql5.0.18

2006-03-21 Thread Jason Teagle
e- > From: Ricardas.S [mailto:[EMAIL PROTECTED] > Sent: 21 March 2006 14:31 > To: [EMAIL PROTECTED] > Subject: Re: Timestamp problem in mysql5.0.18 > > > Yes, I think you are right, it should be the main reason of > insert failure. > Thank you for good idea. > > Ricka &

Timestamp problem in mysql5.0.18

2006-03-21 Thread Ricardas.S
Hi All, Today, I encountered problem when trying to insert '2006-03-26 03:00:00' value into timestamp column: CREATE TABLE `test` ( `a` timestamp ) ENGINE = InnoDB DEFAULT CHARSET = latin1 COLLATE = latin1_german1_ci; INSERT INTO test VALUES ('2006-03-26 03:00:00' ); Server response was: ERROR

RE: Timestamp problem.

2005-07-13 Thread John Trammell
ay, July 13, 2005 8:31 AM > To: mysql@lists.mysql.com > Subject: Timestamp problem. > > I have the following part in a schema > > describe feeds > . > > | pubdate | timestamp| YES | | CURRENT_TIMESTAMP > | | > > show create

Timestamp problem.

2005-07-13 Thread Antonio Gulli
I have the following part in a schema describe feeds . | pubdate | timestamp| YES | | CURRENT_TIMESTAMP | | show create table feeds; `pubdate` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, when i make an INSERT INTO feeds(,

Re: timestamp problem

2005-06-14 Thread Gleb Paharenko
Hello. There were several bugs related to timestamp at 4.0.22 and later. Does the problem remains on 4.1.12 (4.0.24)? manasvini nandakumar <[EMAIL PROTECTED]> wrote: > Hi all, > I have a very strange problem with mysql-4.0.22 > running on a big endian processor platform.When the > tim

timestamp problem

2005-06-14 Thread manasvini nandakumar
Hi all, I have a very strange problem with mysql-4.0.22 running on a big endian processor platform.When the timestamp gets updated as '2005-01-01 23:00:00', it actually seems to be converted internally as 2005010423.Similarly '2005-01-02 23:00:00' is '2005010523'. The problem is that let us

Re: struggling newbie - datetime or timestamp problem

2004-01-05 Thread Tobias Asplund
On Mon, 5 Jan 2004, Matthew Stuart wrote: > I am trying to create a couple of columns (one createddate and one > updateddate) in a MySQL table that are DATETIME or TIMESTAMP values, > but I am having trouble understanding how it works. I want both columns > to auto add a date and time when a recor

RE: struggling newbie - datetime or timestamp problem

2004-01-05 Thread Larry Brown
w(),article='$text' where id=$id"; just adjust your app's syntax as needed. But this should get your result. Larry -Original Message- From: Matthew Stuart [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 7:49 AM To: MySQL email support Subject: struggling ne

Re: struggling newbie - datetime or timestamp problem

2004-01-05 Thread Alec . Cawley
Matthew Stuart <[EMAIL PROTECTED]> wrote on 05/01/2004 12:49:03: > I am trying to create a couple of columns (one createddate and one > updateddate) in a MySQL table that are DATETIME or TIMESTAMP values, > but I am having trouble understanding how it works. I want both columns > to auto a

Re: struggling newbie - datetime or timestamp problem

2004-01-05 Thread robert_rowe
Your easiest route would be to make createddate a DATETIME field and update it yourself when you insert a record. You can then make updateddate a TIMESTAMP and let MySQL set it to NOW() automatically for you by not specifying it in any of your insert or update queries. If you made them both tim

struggling newbie - datetime or timestamp problem

2004-01-05 Thread Matthew Stuart
I have been sent a url for datetime explanations in the MySQL manual. I have learnt a few things, but I am also more confused than ever. I am trying to create a couple of columns (one createddate and one updateddate) in a MySQL table that are DATETIME or TIMESTAMP values, but I am having troubl

RE: timestamp problem ..

2002-06-14 Thread Wouter van Vliet
p: RE: timestamp problem .. The first timestamp in any table is automatically updated by mysql every time you modify that record. It is the modify timestamp If you wish to use the timestamp in your table, you should create two timestamps at least and use the second one Modstamp timestamp Usable time

Re: timestamp problem ..

2002-06-14 Thread Steve Edberg
This is exactly what timestamp columns are supposed to do - see http://www.mysql.com/doc/D/A/DATETIME.html The first timestamp column in the table will be automatically updated upon insert/update. Your choices are: (1) Change to datetime type. Then, on insert, insert the current date

Re: timestamp problem ..

2002-06-14 Thread Victoria Reznichenko
Wouter, Friday, June 14, 2002, 4:53:20 PM, you wrote: WvV> I'm having a slight problem with the timestamp column format. When I alter a WvV> table and, add a column of type timestamp all records get the current WvV> timestamp, that's ok. When i insert a new row, all records get the current WvV> t

RE: timestamp problem ..

2002-06-14 Thread Luc Foisy
://www.mysql.com/doc/D/A/DATETIME.html starting on the fourth paragraph I'll take my beer via air mail :) > -Original Message- > From: Wouter van Vliet [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 14, 2002 9:53 AM > To: [EMAIL PROTECTED] > Cc: Wouter @ Witbier

timestamp problem ..

2002-06-14 Thread Wouter van Vliet
Heey Folks, I'm having a slight problem with the timestamp column format. When I alter a table and, add a column of type timestamp all records get the current timestamp, that's ok. When i insert a new row, all records get the current timestamp. That too is ok. But now, when I update one row of th

Re: timestamp problem

2001-07-27 Thread mike cullerton
hehe, this got rejected because i didn't say database or sql or query or table :) on 7/26/01 5:17 PM, Kory Wheatley at [EMAIL PROTECTED] wrote: > is the TIMESTAMP option where I get the current date from. try "now()" instead of "TIMESTAMP" -- mike cullerton -- mike cullerton ---

Re: timestamp problem

2001-07-27 Thread Werner Stuerenburg
Omit the value for timestamp. mysql will do all by itself. Kory Wheatley schrieb am Freitag, 27. Juli 2001, 01:17:22: > I'm using PHP to add records into a mysql database. The records write > successfully to the database > except for the timestamp field which I have defined as > Field T

Re: timestamp problem

2001-07-27 Thread Sebastiaan J.A. Kamp
P', use NULL -- and don't put quotation marks around it!! By inserting 'nothing' into your "TheDate" field, MySQL is allowed to update the timestamp. Regards, Sebastiaan J.A. Kamp - Original Message - From: "Kory Wheatley" <[EMAIL PROTECTED]

timestamp problem

2001-07-27 Thread Kory Wheatley
I'm using PHP to add records into a mysql database. The records write successfully to the database except for the timestamp field which I have defined as Field Type Null Key Default Extra TheDatetimestamp(14) YES NULL Ev

Replication TIMESTAMP problem?

2001-05-02 Thread Gabriel Corneanu
Hi, I'm asking again, maybe someone reads my message. The manual says that replication should work with TIMESTAMP. What does this mean? When I replicate (with binary logs) a table with such a field, the values on the slave is different (because of time difference). I saw that the update log has so