[hg] main-silver: #232782: Java DB Grab Recreate table Schema

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [hg] main-silver: #232782: Java DB Grab Recreate table Schema
  • Date: Wed, 17 Jul 2013 00:49:11 -0700

changeset 5257dcfc6975 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/5257dcfc6975
description:
        #232782: Java DB Grab Recreate table Schema

diffstat:

 db/src/org/netbeans/modules/db/explorer/action/RecreateTableAction.java |  2 
+-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git 
a/db/src/org/netbeans/modules/db/explorer/action/RecreateTableAction.java 
b/db/src/org/netbeans/modules/db/explorer/action/RecreateTableAction.java
--- a/db/src/org/netbeans/modules/db/explorer/action/RecreateTableAction.java
+++ b/db/src/org/netbeans/modules/db/explorer/action/RecreateTableAction.java
@@ -86,7 +86,7 @@
 
             DatabaseConnection dbconn = 
activatedNodes[0].getLookup().lookup(DatabaseConnection.class);
 
-            if (dbconn != null && tn != null && (! tn.isSystem())) {
+            if (dbconn != null && (tn == null || (!tn.isSystem()))) {
                 enabled = 
DatabaseConnection.isVitalConnection(dbconn.getConnection(), dbconn);
             }
         }

[hg] main-silver: #232782: Java DB Grab Recreate table Schema

Jaroslav Havlin 07/17/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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close