Bug #1775 getSystemFunction in DatabaseMetaData.java returns incorrect values
Submitted: 7 Nov 2003 4:06 Modified: 19 Nov 2003 10:03
Reporter: Tony Prichard Email Updates:
Status: Closed Impact on me:
None 
Category:Connector / J Severity:S3 (Non-critical)
Version:3.1.0-alpha OS:N/A
Assigned to: Mark Matthews CPU Architecture:Any

[7 Nov 2003 4:06] Tony Prichard
Description:
Looking at the source code for DatabaseMetaData.java in the getSystemFunctions contains the following code.

    public String getSystemFunctions() throws java.sql.SQLException {
        return "DATABASE,USER,SYSTEM_USER,SESSION_USER,PASSWORD,ENCRYPT,LAST_INSERT_ID,VEresultsION";
    }

the last element in the string is VEresultsION. Should be VERSION. It looks as though a global replace while editing has altered this.

How to repeat:
Inspect the code

Suggested fix:
Change VEresultsION to VERSION in getSystemFunctions method in DatabaseMetaData.java
[19 Nov 2003 10:03] Mark Matthews
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html