empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1360275 - /empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBView.java
Date Wed, 11 Jul 2012 16:27:02 GMT
Author: doebele
Date: Wed Jul 11 16:27:02 2012
New Revision: 1360275

URL: http://svn.apache.org/viewvc?rev=1360275&view=rev
Log:
EMPIREDB-141
Bugfig: View declaration name check

Modified:
    empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBView.java

Modified: empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBView.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBView.java?rev=1360275&r1=1360274&r2=1360275&view=diff
==============================================================================
--- empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBView.java (original)
+++ empire-db/trunk/empire-db/src/main/java/org/apache/empire/db/DBView.java Wed Jul 11 16:27:02
2012
@@ -193,13 +193,13 @@ public abstract class DBView extends DBR
     public DBView(String name, DBDatabase db, boolean isUpdateable)
     { // Set the column expressions
         super(db);
-        // Add View to Database
-        if (db != null && name != null)
-            db.addView(this);
         // Set Name and Alias
         this.name = name;
         this.alias = "v" + String.valueOf(viewCount.incrementAndGet());
         this.updateable = isUpdateable;
+        // Add View to Database
+        if (db != null && name != null)
+            db.addView(this);
     }
 
     /**



Mime
View raw message