[MDEV-653] LP:827299 - NOW('2011-07-20 11:44:51') not working, crashing replication Created: 2011-08-16 Updated: 2012-10-10 Resolved: 2012-10-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | floyd (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| 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:
old 5.2.7 version:
|
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-08-16 ] |
|
Re: NOW('2011-07-20 11:44:51') not working, crashing replication 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? |
| Comment by floyd (Inactive) [ 2011-08-16 ] |
|
Re: NOW('2011-07-20 11:44:51') not working, crashing replication replication stops with the error: The source of the query I looked after is an old version phpmyadmin, but in some other cases in seems like the came from an odbc/ms-access application. The fact is: the query is OK on the master, is being replicated, and all slaves in 5.3 stop. |
| Comment by Rasmus Johansson (Inactive) [ 2011-08-16 ] |
|
Launchpad bug id: 827299 |
| Comment by Philip Stoev (Inactive) [ 2011-08-16 ] |
|
Re: NOW('2011-07-20 11:44:51') not working, crashing replication |
| Comment by Sergei Golubchik [ 2012-10-10 ] |
|
The fact that NOW(X) seemed to work was a bug, it was never documented as a supported syntax, and the argument of NOW was ignored. Starting from 5.3 NOW(X) is supported and documented syntax, X being the precision of the result. One can write NOW(0) or NOW(2) or NOW(6), for example. That's why the old undocumented syntax NOW(arbitrary_unused_expression) can no longer be recognized. |