diff -r 8d6bc6ab1875 db.dataview/src/org/netbeans/modules/db/dataview/meta/DBMetaDataFactory.java --- a/db.dataview/src/org/netbeans/modules/db/dataview/meta/DBMetaDataFactory.java Fri Sep 26 22:42:00 2008 -0700 +++ b/db.dataview/src/org/netbeans/modules/db/dataview/meta/DBMetaDataFactory.java Sun Sep 28 22:53:19 2008 -0700 @@ -55,9 +55,10 @@ import java.util.Map; import java.util.Set; import java.util.StringTokenizer; +import java.util.logging.Level; +import java.util.logging.Logger; import org.netbeans.api.db.sql.support.SQLIdentifiers; import org.netbeans.modules.db.dataview.util.DataViewUtils; -import org.openide.util.Exceptions; /** * Extracts database metadata information (table names and constraints, their @@ -67,6 +68,7 @@ */ public final class DBMetaDataFactory { + private static Logger LOGGER = Logger.getLogger(DBMetaDataFactory.class.getName()); public static final int DB2 = 0; public static final int ORACLE = 1; public static final int SQLSERVER = 2; @@ -173,7 +175,7 @@ rs = dbmeta.getImportedKeys(setToNullIfEmpty(table.getCatalog()), setToNullIfEmpty(table.getSchema()), table.getName()); fkList = DBForeignKey.createForeignKeyColumnMap(table, rs); } catch (SQLException e) { - Exceptions.printStackTrace(e); + LOGGER.log(Level.WARNING, e.getMessage()); } finally { DataViewUtils.closeResources(rs); } diff -r 8d6bc6ab1875 db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java --- a/db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java Fri Sep 26 22:42:00 2008 -0700 +++ b/db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java Sun Sep 28 22:53:19 2008 -0700 @@ -517,7 +517,11 @@ stmt = conn.createStatement(); } int pageSize = dataView.getDataViewPageContext().getPageSize(); - stmt.setFetchSize(pageSize); + try { + stmt.setFetchSize(pageSize); + } catch (SQLException e) { + // ignore since is used to only to hint the driver for optimization + } if (dataView.isLimitSupported() && select && sql.toUpperCase().indexOf(LIMIT_CLAUSE) == -1) { stmt.setMaxRows(pageSize);