Bug #58235 | GET_FORMAT(DATETIME,'EUR') '%Y-%m-%d %H.%i.%s' | ||
---|---|---|---|
Submitted: | 16 Nov 2010 16:36 | Modified: | 17 Nov 2010 4:25 |
Reporter: | Manuel Braun | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1.41, 5.1.54 | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | 'EUR') wrong delivery, GET_FORMAT(DATETIME |
[16 Nov 2010 16:36]
Manuel Braun
[16 Nov 2010 16:47]
Valeriy Kravchuk
Indeed, this is what we have: macbook-pro:5.1 openxs$ bin/mysql -uroot test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.1.54-debug Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select GET_FORMAT(DATETIME,'EUR'); +----------------------------+ | GET_FORMAT(DATETIME,'EUR') | +----------------------------+ | %Y-%m-%d %H.%i.%s | +----------------------------+ 1 row in set (0.00 sec) mysql> select GET_FORMAT(DATE,'EUR'); +------------------------+ | GET_FORMAT(DATE,'EUR') | +------------------------+ | %d.%m.%Y | +------------------------+ 1 row in set (0.00 sec) mysql> select GET_FORMAT(TIME,'EUR'); +------------------------+ | GET_FORMAT(TIME,'EUR') | +------------------------+ | %H.%i.%s | +------------------------+ 1 row in set (0.00 sec) The results of GET_FORMAT(DATETIME) and GET_FORMAT(DATE) are inconsistent in any case.
[17 Nov 2010 4:25]
Valeriy Kravchuk
Actually this is explicitly documented at http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_get-format There is no reference to any DIN for EUR, so formally this is not a bug.