db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r1333096 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/PrivilegeNode.java
Date Wed, 02 May 2012 16:19:42 GMT
Author: kristwaa
Date: Wed May  2 16:19:41 2012
New Revision: 1333096

URL: http://svn.apache.org/viewvc?rev=1333096&view=rev
Log:
Added a code comment.

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/PrivilegeNode.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/PrivilegeNode.java?rev=1333096&r1=1333095&r2=1333096&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/PrivilegeNode.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/PrivilegeNode.java Wed
May  2 16:19:41 2012
@@ -140,6 +140,9 @@ public class PrivilegeNode extends Query
      */
 	public QueryTreeNode bind( HashMap dependencies, List grantees, boolean isGrant ) throws
StandardException
 	{
+        // The below code handles the case where objectName.getSchemaName()
+        // returns null, in which case we'll fetch the schema descriptor for
+        // the current compilation schema (see getSchemaDescriptor).
         SchemaDescriptor sd = getSchemaDescriptor( objectName.getSchemaName(), true);
         objectName.setSchemaName( sd.getSchemaName() );
         



Mime
View raw message