db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: r411002 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java
Date Thu, 01 Jun 2006 23:56:16 GMT
Author: bandaram
Date: Thu Jun  1 16:56:15 2006
New Revision: 411002

URL: http://svn.apache.org/viewvc?rev=411002&view=rev
Log:
Set current privilege type to be SELECT_PRIV during binding of select statement that a view
represents.

Submitted by Satheesh Bandaram (satheesh@gmail.com)

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java?rev=411002&r1=411001&r2=411002&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java
Thu Jun  1 16:56:15 2006
@@ -33,6 +33,7 @@
 import org.apache.derby.iapi.sql.compile.C_NodeTypes;
 import org.apache.derby.iapi.sql.compile.NodeFactory;
 
+import org.apache.derby.iapi.sql.conn.Authorizer;
 import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;
 
 import org.apache.derby.iapi.sql.dictionary.DataDictionary;
@@ -255,6 +256,7 @@
 
 		try {
 			compilerContext.setCurrentAuxiliaryProviderList(apl);
+			compilerContext.pushCurrentPrivType(Authorizer.SELECT_PRIV);
 
 			/* Bind the tables in the queryExpression */
 			queryExpr = queryExpr.bindNonVTITables(dataDictionary, fromList);
@@ -276,6 +278,7 @@
 		}
 		finally
 		{
+			compilerContext.popCurrentPrivType();
 			compilerContext.setCurrentAuxiliaryProviderList(prevAPL);
 		}
 



Mime
View raw message