Bug #601 com.mysql.jdbc.DatabaseMetaData.getColumns
Submitted: 6 Jun 2003 2:23 Modified: 6 Jul 2003 5:39
Reporter: thierry boucheny Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1 OS:Linux (Linux)
Assigned to: Mark Matthews CPU Architecture:Any

[6 Jun 2003 2:23] thierry boucheny
Description:
This bug applies on MySQL server 4.1 or JConnector 3.0.8.

Configuration :
RedHat 7.2
j2SDK1.4.1
tomcat 4.1

Here is the exception :

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.String.substring(String.java:1474)
	at com.mysql.jdbc.DatabaseMetaData.getColumns(DatabaseMetaData.java:877)

How to repeat:
In every SELECT
[6 Jun 2003 2:35] Lenz Grimmer
Assigned to Connector/J maintainer
[6 Jun 2003 5:39] Mark Matthews
I can't repeat your problem. Can you please send the table structure you are using that causes this problem. Also, you should use Connector/J 3.1.x to work with MySQL-4.1.x, as this version of the driver receives fixes related to MySQL-4.1 _before_ 3.0.x does. Once these fixes prove stable, they are backported to Connector/J 3.0.x when appropriate.
[14 Feb 2005 22:54] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".