Bug #57697 | MetaDataRegressionTest.testCharacterSetForDBMD causes false negative | ||
---|---|---|---|
Submitted: | 24 Oct 2010 19:41 | Modified: | 3 Nov 2010 17:50 |
Reporter: | Elena Stepanova | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S3 (Non-critical) |
Version: | 5.1.13 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[24 Oct 2010 19:41]
Elena Stepanova
[1 Nov 2010 4:56]
Erica Moss
I can verify that the proposed fix does work in windows. Just need to make sure it works with the pre-5.2 server versions and that version test can be removed also.
[3 Nov 2010 8:41]
Tonci Grgin
Problem seems to be in DatabaseMetaData.getTables around line 4937: results = stmt.executeQuery("SHOW TABLES FROM " + quotedId + catalogStr.toString() + quotedId + " LIKE '" + tableNamePat + "'");
[3 Nov 2010 10:50]
Tonci Grgin
Fixed for useInformationSchema=false (code above). Now needs check for useInformationSchema=true.
[3 Nov 2010 11:01]
Tonci Grgin
Fixed both cases. Patch needs to go through regression testing before pushing.
[3 Nov 2010 17:50]
Tonci Grgin
Final patch pushed up to revision 993.