469,167 Members | 1,280 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,167 developers. It's quick & easy.

Mysql 4.1 meta.getColumns throws StringIndexOutOfBoundsException

Hi,
I am connecting to a mysql 4.1 db with mysql connectorJ 3.0.7 and when
I run a meta.getColumns(null, null, tableName, "%") on one particular
table the following exception is thrown.

Exception occurred during event dispatching:
java.lang.StringIndexOutOfBoundsException: String index out of range:
-1
at java.lang.String.substring(String.java:1497)
at com.mysql.jdbc.DatabaseMetaData.getColumns(Databas eMetaData.java:877)
I can perform SELECT statements when connected (via connector J) the
only time an exception is thrown is when I call
DatabaseMetaData.getColumns.
To make matters stranger, if I set up an ODBC connection (on Windows
2000) to the same database the exception is not thrown and I can see
all columns.
The table is myIsam and I can send a copy of the frm MYD and MYI files
if required.

Thanks in advance
Paul.
Jul 19 '05 #1
0 1446

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Torsten Schmidt | last post: by
2 posts views Thread by Jon Dellaria | last post: by
reply views Thread by jackiu | last post: by
reply views Thread by Alcyone Oliveira | last post: by
1 post views Thread by paulq182 | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.