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.

View | Details | Raw Unified | Return to bug 239876
Collapse All | Expand All

(-)db/src/org/netbeans/modules/db/explorer/action/ConnectAction.java (-1 / +2 lines)
Lines 390-396 Link Here
390
        }
390
        }
391
391
392
        private boolean supportsConnectWithoutUsername(DatabaseConnection dc) {
392
        private boolean supportsConnectWithoutUsername(DatabaseConnection dc) {
393
            return dc.findJDBCDriver().getClassName().equals("org.sqlite.JDBC"); //NOI18N
393
            return dc.findJDBCDriver().getClassName().equals("org.sqlite.JDBC") || //NOI18N
394
                    dc.findJDBCDriver().getClassName().equals("org.h2.Driver"); //NOI18N
394
        }
395
        }
395
    }
396
    }
396
397
(-)db/src/org/netbeans/modules/db/util/DriverListUtil.java (+4 lines)
Lines 329-334 Link Here
329
        add("SQLite",
329
        add("SQLite",
330
            "org.sqlite.JDBC",
330
            "org.sqlite.JDBC",
331
            "jdbc:sqlite:<FILE>");
331
            "jdbc:sqlite:<FILE>");
332
        
333
        add("H2 Database Engine",
334
            "org.h2.Driver",
335
            "jdbc:h2:<FILE>");
332
    }
336
    }
333
    
337
    
334
    public static Set<String> getDrivers() {
338
    public static Set<String> getDrivers() {

Return to bug 239876