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: NetBeans IDE 7.3 (Build 201302132200) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows 7 User Comments: GUEST: Performing a simple query that is pulling in no records. select * from lawext.WS_SN_NOTIFY GUEST: SQL Command sql query to a Microsoft SQL DB using jdbc/odbc GUEST: SQL Command Stacktrace: java.sql.SQLException: Invalid Fetch Size at sun.jdbc.odbc.JdbcOdbcStatement.setFetchSize(JdbcOdbcStatement.java:825) at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.prepareSQLStatement(SQLExecutionHelper.java:671) at org.netbeans.modules.db.dataview.output.SQLExecutionHelper.access$300(SQLExecutionHelper.java:81) at org.netbeans.modules.db.dataview.output.SQLExecutionHelper$1Loader.run(SQLExecutionHelper.java:143) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
Created attachment 132888 [details] stacktrace
Created attachment 133000 [details] proposed patch v1 The attached patch adds a guarded version of setFetchSize to SQLExecutionHelper.basicly it lowers the log level to INFO (which does not trigger the warning dialog) and also tries to reset to default (0).
Patch integrated as http://hg.netbeans.org/core-main/rev/2eafedf5babd Thank you, Matthias.