3 messages in com.mysql.lists.bugsRe: ResultSetMetaData.getColumnTypeNa...| From | Sent On | Attachments |
|---|---|---|
| John Zoetebier | 09 Mar 2003 22:03 | |
| Mark Matthews | 10 Mar 2003 05:04 | |
| John Zoetebier | 11 Mar 2003 13:21 |
| Subject: | Re: ResultSetMetaData.getColumnTypeName bug for fieldtype YEAR![]() |
|---|---|
| From: | John Zoetebier (john...@transparent.co.nz) |
| Date: | 03/11/2003 01:21:50 PM |
| List: | com.mysql.lists.bugs |
SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: From: john...@transparent.co.nz To: mys...@lists.mysql.com Subject: [50 character or so descriptive subject here (for reference)]
>Description: I created a table with all fields to see what the column type name is. The year field shows correct ColumnTypeName of YEAR in nightly build of 2003-03-11 However I noticed that: - fieldtype VARCHAR results in ColumnTypeName VARCHAR - fieldtype CHAR results in ColumnTypeName VARCHAR - fieldtype ENUM results in ColumnTypeName CHAR - fieldtype SET results in ColumnTypeName CHAR
Something similar exists for BOB fields: - fieldtype TINYBLOB results in ColumnTypeName BLOB - fieldtype MEDIUMBLOB results in ColumnTypeName BLOB - fieldtype LONGBLOB results in ColumnTypeName BLOB - fieldtype BLOB results in ColumnTypeName BLOB
This could be by design or a bug.
How-To-Repeat:
<code/input/activities to reproduce the problem (multiple lines)> Create table with field with field type CHAR. Run Java program to extract column type using ResultSetMetaData.getColumnTypeName
>Fix: <how to correct or work around the problem, if known (multiple lines)>
>Submitter-Id: <submitter ID> >Originator: John Zoetebier >Organization: Transparent Systems <organization of PR author (multiple lines)> >MySQL support: [none] >Synopsis: ResultSetMetaData.getColumnTypeName bug for fieldtype CHAR >Severity: <[ non-critical > >Priority: <[ low ]> >Category: mysql >Class: <[ sw-bug ] (one line)> >Release: mysql-3.23.52 (Source distribution) >Server: /usr/bin/mysqladmin Ver 8.23 Distrib 3.23.52, for suse-linux on i686 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license
Server version 3.23.52-log Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 7 hours 28 min 51 sec
Threads: 3 Questions: 989 Slow queries: 0 Opens: 67 Flush tables: 1 Open tables: 55 Queries per second avg: 0.037 >Environment: <machine, os, target, libraries (multiple lines)> System: Linux tsl010 2.4.19-4GB #1 Fri Sep 13 13:19:15 UTC 2002 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/i486-suse-linux/3.2/specs Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --enable-languages=c,c++,f77,objc,java,ada --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i486-suse-linux Thread model: posix gcc version 3.2 Compilation info: CC='gcc' CFLAGS='-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -DPIC -fPIC' CXX='g++' CXXFLAGS='-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -felide-constructors -fno-exceptions -fno-rtti -fPIC -DPIC' LDFLAGS='' LIBC: -rwxr-xr-x 1 root root 1321674 2002-10-09 05:31 /lib/libc.so.6 -rw-r--r-- 1 root root 23159812 2002-09-10 04:40 /usr/lib/libc.a -rw-r--r-- 1 root root 178 2002-09-10 04:40 /usr/lib/libc.so lrwxrwxrwx 1 root root 20 2002-12-02 11:38 /usr/lib/libc-client.so -> libc-client.so.2001a -rwxr-xr-x 1 root root 735696 2002-09-10 08:47 /usr/lib/libc-client.so.2001a Configure command: ./configure '--disable-shared' '--with-mysqld-ldflags=-static' '--with-client-ldflags=-static' '--without-berkeley-db' '--without-innodb' '--enable-assembler' '--enable-large-files' '--infodir=/usr/share/info' '--libdir=/usr/lib' '--libexecdir=/usr/sbin' '--localstatedir=/var/lib/mysql' '--mandir=/usr/share/man' '--prefix=/usr' '--sysconfdir=/etc' '--with-mysqld-user=mysql' '--without-debug' '--datadir=/usr/share' '--includedir=/usr/include' '--with-extra-charsets=complex' '--with-unix-socket-path=/var/lib/mysql/mysql.sock' '--with-libwrap' 'CFLAGS=-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -DPIC -fPIC' 'CXXFLAGS=-O2 -march=i586 -mcpu=i686 -fmessage-length=0 -felide-constructors -fno-exceptions -fno-rtti -fPIC -DPIC'
--------------------------------------------------------------------- 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 bugs...@lists.mysql.com To unsubscribe, e-mail <bugs...@lists.mysql.com>




