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.
[ BUILD # : 495eaf3904dc ] [ JDK VERSION : 1.6.20 ] It is probably a recent regression, but now when I run a statement before establish the connection the statement is not executed. For 6.9 if you do this the connection is performed before to run the statement and password is asked if necessary.
Tested on a build: Product Version = NetBeans IDE Dev (Build 201101040001) (#15af2035d5d0) Operating System = Linux version 2.6.35-24-generic running on amd64 Java; VM; Vendor = 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_23-b05 it seems working for me. Test case A: 1) Restart IDE with some SQL script (more SQL statements) opened in editor 2) Invoke 'Run SQL Statement' from popup menu => a popup warning appears with message "No database connection selected. Need to select one from..." 3) Once I select some, it asks for password then opens the connection and display a result. Test case B: 1) Write SQL script 2) Disconnect a connection 3) Run SQL Statement => prompt for password then open DB connection again, displays data. If I'm wrong, please describe your steps in detail. Thanks
Sorry for the delay, I am back from vacation just today. I have tested it again and I forgot to mention that I use Oracle database. For Java DB it really works. Thanks a lot.
*** This bug has been marked as a duplicate of bug 194766 ***