| Bug #67614 | cannot insert specific timestamp into table | ||
|---|---|---|---|
| Submitted: | 16 Nov 2012 16:07 | Modified: | 18 Nov 2012 21:01 |
| Reporter: | Doug Thunig | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 5.5.28 | OS: | Windows (Windows 7 32-bit SP1) |
| Assigned to: | CPU Architecture: | Any | |
[16 Nov 2012 20:36]
MySQL Verification Team
sounds like a DST change to me.. Maybe that time didn't exist?
[18 Nov 2012 21:01]
MySQL Verification Team
Please see prior comment from Shane.
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.5.28-log MySQL Community Server (GPL)
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> use test
Database changed
mysql> create table test2 (col1 timestamp);
Query OK, 0 rows affected (0.03 sec)
mysql> INSERT INTO test2 VALUES ('2011-03-13 02:13:00');
Query OK, 1 row affected (0.03 sec)
mysql> select col1 from test2;
+---------------------+
| col1 |
+---------------------+
| 2011-03-13 02:13:00 |
+---------------------+
1 row in set (0.00 sec)
mysql>

Description: The timestamp '2011-03-13 02:13:00' inexplicably cannot be inserted into a table. The problem seems to be with the hour part of the date 2011-03-13. '2011-03-13 03:13:00' '2011-03-13 04:13:00' But the following produce the same error: '2011-03-13 02:14:00' '2011-03-13 02:59:00' The error: mysql> INSERT INTO test2 VALUES ('2011-03-13 02:13:00'); ERROR 1292 (22007): Incorrect datetime value: '2011-03-13 02:13:00' for column 't' at row 1 A successful insert into the same table: mysql> INSERT INTO test2 VALUES ('2011-03-13 03:13:00'); Query OK, 1 row affected (0.00 sec) mysql> select t from test2; +---------------------+ | t | +---------------------+ | 2011-03-13 03:13:00 | +---------------------+ 1 row in set (0.00 sec) How to repeat: 1. Create a table with TIMESTAMP field: CRE