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 92181
Collapse All | Expand All

(-)db/src/org/netbeans/modules/db/explorer/action/ConnectAction.java (-1 / +6 lines)
Lines 190-196 Link Here
190
            // Note that we don't have to show the dialog if the password is 
190
            // Note that we don't have to show the dialog if the password is 
191
            // null and remember is true; null is often a valid password
191
            // null and remember is true; null is often a valid password
192
            // (and is the default password for MySQL and PostgreSQL).
192
            // (and is the default password for MySQL and PostgreSQL).
193
            if (user == null || !remember || showDialog) {
193
            if (((!supportsConnectWithoutUsername(dbcon))
194
                    && (user == null || !remember)) || showDialog) {
194
                final ConnectPanel basePanel = new ConnectPanel(this, dbcon);
195
                final ConnectPanel basePanel = new ConnectPanel(this, dbcon);
195
196
196
                final PropertyChangeListener connectionListener = new PropertyChangeListener() {
197
                final PropertyChangeListener connectionListener = new PropertyChangeListener() {
Lines 390-395 Link Here
390
391
391
            return schemaPanel.setSchemas(schemas, defaultSchema);
392
            return schemaPanel.setSchemas(schemas, defaultSchema);
392
        }
393
        }
394
        
395
        private boolean supportsConnectWithoutUsername(DatabaseConnection dc) {
396
            return dc.findJDBCDriver().getClassName().equals("org.sqlite.JDBC");
393
    }
397
    }
398
    }
394
399
395
}
400
}
(-)db/src/org/netbeans/modules/db/util/DriverListUtil.java (+4 lines)
Lines 328-333 Link Here
328
        add("Sybase Driver",
328
        add("Sybase Driver",
329
        "com.sun.sql.jdbc.sybase.SybaseDriver",
329
        "com.sun.sql.jdbc.sybase.SybaseDriver",
330
        "jdbc:sun:sybase://<HOST>[:<PORT]");          
330
        "jdbc:sun:sybase://<HOST>[:<PORT]");          
331
        
332
        add("SQLite",
333
            "org.sqlite.JDBC",
334
            "jdbc:sqlite:<FILE>");
331
    }
335
    }
332
    
336
    
333
    public static Set<String> getDrivers() {
337
    public static Set<String> getDrivers() {

Return to bug 92181