[hg] main-silver: Assert that scrollable cursors are enabled whe...

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: Assert that scrollable cursors are enabled whe...
  • Date: Tue, 11 Jun 2013 12:05:48 -0700

changeset b739892f4578 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/b739892f4578
description:
        Assert that scrollable cursors are enabled when getting total counts 
in SQLExecutionHelper.loadDataFrom

diffstat:

 
db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java
 |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff --git 
a/db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java
 
b/db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java
--- 
a/db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java
+++ 
b/db.dataview/src/org/netbeans/modules/db/dataview/output/SQLExecutionHelper.java
@@ -778,7 +778,8 @@
 
             if (getTotal) {
                 Integer result = null;
-
+                assert useScrollableCursors : "Scrollable cursors need" 
//NOI18N
+                        + " to be enabled to get total counts here";    
//NOI18N
                 if (rs.getType() == ResultSet.TYPE_SCROLL_INSENSITIVE
                         || rs.getType() == ResultSet.TYPE_SCROLL_SENSITIVE) {
                     try {

[hg] main-silver: Assert that scrollable cursors are enabled whe...

Jaroslav Havlin 06/11/2013

Project Features

About this Project

DB was started in November 2009, is owned by Antonin Nebuzelsky, and has 113 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close