This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 27546

Summary: TestDriver issues an error info message where there should be a warning
Product: db Reporter: lef <lef>
Component: CodeAssignee: issues@db <issues>
Status: CLOSED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description lef 2002-09-24 17:51:16 UTC
For primary keys info, the following commands are issued 
by TestDriverAction.performTest:
            drvSpec.getPrimaryKeys(tab);
            rs = drvSpec.getResultSet();
If rs == null OR rs is empty, an error message is issued 
("DatabaseMetaData is not implemented". However, a valid 
database, with rs != null,  might contain no PKeys so in 
this case there should be a warning, while rs == null is a 
genuine defect. We are writing spreadsheet drivers (this 
is somewhat unusual), so there are never PKeys. Same is 
true for Indexes and Procedures.
Proposed solution: in TestDriverAction.performTest(), set 
the flag ok=false ONLY when rs == null for PrimaryKeys, 
Indexes and Procedures.
Comment 1 Radko Najman 2002-10-25 10:09:27 UTC
Resolution status changed.
Comment 2 Radko Najman 2004-02-02 18:10:04 UTC
TestDriverAction was removed for release 3.6. It is not used anymore.