Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Same thing works fine in MySQL:
mysql> UPDATE Project set my_timestamp = '2012-10-28 00:00:00' where id = 1;
Query OK, 1 row affected (0.12 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> SELECT my_timestamp from Project where id = 1;
+---------------------+
| my_timestamp |
+---------------------+
| 2012-10-28 00:00:00 |
+---------------------+
1 row in set (0.00 sec)
Original comment by san...@zeroturnaround.com
on 19 Mar 2013 at 10:26
Hi,
This isn't a problem within H2. It's a problem of Java data / time handling, if
you use PARSEDATETIME. The example you gave for MySQL also works for H2:
drop table project;
create table project(id int, my_timestamp timestamp);
insert into project values(1, null);
UPDATE Project set my_timestamp = '2012-10-28 00:00:00' where id = 1;
select * from project;
Original comment by thomas.t...@gmail.com
on 20 Mar 2013 at 5:25
Before logging a bug, please use the H2 Google Group or StackOverflow.
Original comment by thomas.t...@gmail.com
on 20 Mar 2013 at 5:26
Original issue reported on code.google.com by
san...@zeroturnaround.com
on 19 Mar 2013 at 9:42