>Description: There is an example in this tutorial which I think is done incorrectly. http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html It says: "SELECT name, (TO_DAYS(NOW())-TO_DAYS(birth))/365 AS age" That code does not take into account leap years. I think such an example should be done the correct way because people might copy it and use it. In the program I'm writing, that one extra day of a leap year is important. One day makes a difference, legally, when a person is one day shy of being 18 years old. >How-To-Repeat: >Fix: >Submitter-Id: <submitter ID> >Originator: Philip Mak >Organization: -Philip Mak ([EMAIL PROTECTED]) > >MySQL support: none >Synopsis: manual errata >Severity: non-critical >Priority: low >Category: mysql >Class: doc-bug >Release: mysql-3.23.36 (Official MySQL RPM) >Environment: System: Linux sg1.indexthis.net 2.2.17-14 #1 Mon Feb 5 17:53:36 EST 2001 i686 unknown Architecture: i686 Some paths: /usr/bin/perl /usr/bin/make /usr/bin/gmake /usr/bin/gcc /usr/bin/cc GCC: Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) Compilation info: CC='egcs' CFLAGS=' -O6 -fno-omit-frame-pointer' CXX='egcs' CXXFLAGS=' -O6 -felide-constructors -fno-exceptions -fno-rtti -fno-omit-frame-pointer' LDFLAGS='' LIBC: lrwxrwxrwx 1 root root 13 Apr 4 16:33 /lib/libc.so.6 -> libc-2.1.3.so -rwxr-xr-x 1 root root 4101836 Jan 15 10:49 /lib/libc-2.1.3.so -rw-r--r-- 1 root root 20273324 Jan 15 10:49 /usr/lib/libc.a -rw-r--r-- 1 root root 178 Jan 15 10:49 /usr/lib/libc.so lrwxrwxrwx 1 root root 10 Apr 4 16:34 /usr/lib/libc-client.a -> c-client.a Configure command: ./configure --disable-shared --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static --enable-assembler --with-mysqld-user=mysql --with-unix-socket-path=/var/lib/mysql/mysql.sock --prefix=/ --with-extra-charsets=complex --exec-prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var/lib/mysql --infodir=/usr/info --includedir=/usr/include --mandir=/usr/man --without-berkeley-db --without-innobase '--with-comment=Official MySQL RPM' Perl: This is perl, version 5.005_03 built for i386-linux --------------------------------------------------------------------- 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