You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ba...@apache.org on 2006/06/02 01:56:16 UTC
svn commit: r411002 -
/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/CreateViewNode.java
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);
}