Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
select NOW('2011-07-20 11:44:51'); gives an error in mariadb 5.3, but works on 5.2.7. Thus a slave with 5.3 connected to a 5.2 master crashes as soon as such an INSERT is in the binlog.
5.3 beta:
MariaDB [master]> select @@version;select NOW('2011-07-20 11:44:51');
+---------------------------------------+
| @@version |
+---------------------------------------+
| 5.3.0-MariaDB-beta-mariadb101~squeeze |
+---------------------------------------+
1 row in set (0.00 sec)
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''2011-07-20 11:44:51')' at line 1
old 5.2.7 version:
MariaDB [master]> select @@version;select NOW('2011-07-20 11:44:51');
+--------------------------------------+
| @@version |
+--------------------------------------+
| 5.2.7-MariaDB-mariadb101~squeeze-log |
+--------------------------------------+
1 row in set (0.00 sec)
+----------------------------+
| NOW('2011-07-20 11:44:51') |
+----------------------------+
| 2011-08-16 14:01:41 |
+----------------------------+
1 row in set (0.00 sec)
MariaDB [master]>
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: NOW('2011-07-20 11:44:51') not working, crashing replication
Hi,
according to the documentation, the function NOW() does not take an argument:
http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_now
What do you intend to achieve by supplying an argument to NOW(). Maybe it is some other date/time function that you actually need.
When you say "slave crashes", I assume you mean that replication stops, is that correct? The slave mysqld process continues to run, right?