Bug #34629 | CHANGE MASTER TO doesn't permit quoted values | ||
---|---|---|---|
Submitted: | 17 Feb 2008 20:35 | Modified: | 18 Feb 2008 12:36 |
Reporter: | Baron Schwartz (Basic Quality Contributor) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Parser | Severity: | S3 (Non-critical) |
Version: | 5.0.45 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | qc |
[17 Feb 2008 20:35]
Baron Schwartz
[17 Feb 2008 23:30]
Baron Schwartz
START SLAVE UNTIL also doesn't like a quoted position.
[18 Feb 2008 0:03]
Paul DuBois
Isn't the real problem with DBD::mysql, then?
[18 Feb 2008 0:16]
Baron Schwartz
I'd say it's a pain point with DBI as a whole, which makes it a little awkward to specify the type of parameters. But that's the Perl-ish idiom. Values should be interpreted as numbers when needed, and as strings when needed. MySQL tries to do this too: I even think I've seen something in the official documentation (or maybe one of the books you wrote?) that says one of MySQL's goals is to try to do what people expect. In this case I think MySQL should interpret the quoted values as numbers, which it does in most other contexts.
[18 Feb 2008 5:04]
Valeriy Kravchuk
Current behaviour is clearly documented in http://dev.mysql.com/doc/refman/5.0/en/change-master-to.html. So, formally, this is "not a bug"... But I do agree that this is inconsistent with many other cases when strings representing numbers are accepted.
[18 Feb 2008 12:36]
Baron Schwartz
I don't see where the current documentation says only integer literals are accepted?
[31 Aug 2009 9:01]
d di
Related: issue #1337
[22 May 2012 7:49]
MySQL Verification Team
related: http://bugs.mysql.com/bug.php?id=65390 (Change master logging should be copy/pastable... (but quotes numeric parameters))