>Description:
date_format is setting times to 12:00 AM; time_format works fine
>How-To-Repeat:
mysql> select start,TIME_FORMAT(start, '%l:%i %p') AS start2 FROM time;
+----------+----------+
| start | start2 |
+----------+----------+
| 12:00:00 | 12:00 PM |
| 14:00:00 | 2:00 PM |
+----------+----------+
2 rows in set (0.01 sec)
mysql> select start,DATE_FORMAT(start, '%l:%i %p') AS start2 FROM time;
+----------+----------+
| start | start2 |
+----------+----------+
| 12:00:00 | 12:00 AM |
| 14:00:00 | 12:00 AM |
+----------+----------+
2 rows in set (0.06 sec)
>Fix:
use time_format if you only have time strings or perhaps
revert to a prior version of mysql
>Submitter-Id: <submitter ID>
>Originator:
>Organization:
>MySQL support: none
>Synopsis: date_format alters times
>Severity: serious
>Priority: medium
>Category: mysql
>Class: sw-bug
>Release: mysql-3.23.36 (Source distribution) [debian package]
>Environment:
System: Linux notquitesonic 2.2.18 #2 Sun Mar 25 20:32:57 EST 2001 i686 unknown
Architecture: i686
Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gcc /usr/bin/cc
GCC: Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20010319 (Debian prerelease)
Compilation info: CC='gcc' CFLAGS='-O2 -fomit-frame-pointer -g' CXX='g++'
CXXFLAGS='-O2 -fomit-frame-pointer -g -felide-constructors -fno-exceptions -fno-rtti'
LDFLAGS=''
LIBC:
lrwxrwxrwx 1 root root 13 May 10 09:36 /lib/libc.so.6 -> libc-2.2.3.so
-rwxr-xr-x 1 root root 1105224 May 6 16:19 /lib/libc-2.2.3.so
-rw-r--r-- 1 root root 2529096 May 6 16:21 /usr/lib/libc.a
-rw-r--r-- 1 root root 178 May 6 16:21 /usr/lib/libc.so
-rw-r--r-- 1 root root 697036 Feb 13 09:29 /usr/lib/libc-client.so.2000
-rw-r--r-- 1 root root 665260 Sep 1 2000 /usr/lib/libc-client.so.4.7
Configure command: ./configure --prefix=/usr --exec-prefix=/usr
--libexecdir=/usr/sbin --datadir=/usr/share --sysconfdir=/etc/mysql
--localstatedir=/var/lib/mysql --includedir=/usr/include --infodir=/usr/share/info
--mandir=/usr/share/man --enable-shared --with-libwrap --enable-assembler
--with-berkeley-db --with-innobase --enable-static --enable-shared --with-raid
--without-readline --with-unix-socket-path=/var/run/mysqld/mysqld.sock
--with-mysqld-user=mysql --without-bench --with-extra-charsets=all
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php