# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: /home/matthias/NetBeansProjects/main-golden # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: db/src/org/netbeans/modules/db/explorer/action/ConnectAction.java --- db/src/org/netbeans/modules/db/explorer/action/ConnectAction.java Base (BASE) +++ db/src/org/netbeans/modules/db/explorer/action/ConnectAction.java Locally Modified (Based On LOCAL) @@ -190,7 +190,8 @@ // Note that we don't have to show the dialog if the password is // null and remember is true; null is often a valid password // (and is the default password for MySQL and PostgreSQL). - if (user == null || !remember || showDialog) { + if (((!supportsConnectWithoutUsername(dbcon)) + && (user == null || !remember)) || showDialog) { final ConnectPanel basePanel = new ConnectPanel(this, dbcon); final PropertyChangeListener connectionListener = new PropertyChangeListener() { @@ -390,6 +391,10 @@ return schemaPanel.setSchemas(schemas, defaultSchema); } + + private boolean supportsConnectWithoutUsername(DatabaseConnection dc) { + return dc.findJDBCDriver().getClassName().equals("org.sqlite.JDBC"); } + } } Index: db/src/org/netbeans/modules/db/util/DriverListUtil.java --- db/src/org/netbeans/modules/db/util/DriverListUtil.java Base (BASE) +++ db/src/org/netbeans/modules/db/util/DriverListUtil.java Locally Modified (Based On LOCAL) @@ -328,6 +328,10 @@ add("Sybase Driver", "com.sun.sql.jdbc.sybase.SybaseDriver", "jdbc:sun:sybase://[:"); } public static Set getDrivers() {