Examples of pushCurrentPrivType()


Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    }

        CompilerContext compilerContext = getCompilerContext();
       
     // Donot need privileges to execute constraints
    compilerContext.pushCurrentPrivType( Authorizer.NULL_PRIV);
    try {
      getAllRelevantConstraints(dataDictionary,  
                      targetTableDescriptor,
                      skipCheckConstraints,
                      changedColumnIds);
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    {
        throw StandardException.newException(SQLState.LANG_OPERATION_NOT_ALLOWED_ON_SESSION_SCHEMA_TABLES);
    }
    if (isPrivilegeCollectionRequired())
    {
      compilerContext.pushCurrentPrivType(Authorizer.TRIGGER_PRIV);
      compilerContext.addRequiredTablePriv(triggerTableDescriptor);
      compilerContext.popCurrentPrivType();     
    }

    /*
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    cc.createDependency(cd);

    if (isPrivilegeCollectionRequired())
    {
      // need SELECT privilege to perform lock table statement.
      cc.pushCurrentPrivType(Authorizer.SELECT_PRIV);
      cc.addRequiredTablePriv(lockTableDescriptor);
      cc.popCurrentPrivType();
    }

    return this;
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    {
        throw StandardException.newException(SQLState.LANG_OPERATION_NOT_ALLOWED_ON_SESSION_SCHEMA_TABLES);
    }
    if (isPrivilegeCollectionRequired())
    {
      compilerContext.pushCurrentPrivType(Authorizer.TRIGGER_PRIV);
      compilerContext.addRequiredTablePriv(triggerTableDescriptor);
      compilerContext.popCurrentPrivType();     
    }

    /*
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    {
        throw StandardException.newException(SQLState.LANG_OPERATION_NOT_ALLOWED_ON_SESSION_SCHEMA_TABLES);
    }
    if (isPrivilegeCollectionRequired())
    {
      compilerContext.pushCurrentPrivType(Authorizer.TRIGGER_PRIV);
      compilerContext.addRequiredTablePriv(triggerTableDescriptor);
      compilerContext.popCurrentPrivType();     
    }

    /*
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

      ProviderList apl = new ProviderList();
     
      try
      {
        cc.setCurrentAuxiliaryProviderList(apl);
        cc.pushCurrentPrivType(Authorizer.SELECT_PRIV);
       
        /* Bind the tables in the queryExpression */
        queryExpression =
          queryExpression.bindNonVTITables(dataDictionary, fromList);
        queryExpression = queryExpression.bindVTITables(fromList);
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

     * For the query above, when working with the subquery, we should
     * require select privilege on t2.c2 rather than update privilege.
     * Prior to fix for DERBY-4191, we were collecting update privilege
     * requirement for t2.c2 rather than select privilege
     */
    cc.pushCurrentPrivType(Authorizer.SELECT_PRIV);

    resultSet = resultSet.bindNonVTITables(getDataDictionary(), fromList);
    resultSet = resultSet.bindVTITables(fromList);

    /* Set the subquery # for this SubqueryNode */
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    {
        throw StandardException.newException(SQLState.LANG_OPERATION_NOT_ALLOWED_ON_SESSION_SCHEMA_TABLES);
    }
    if (isPrivilegeCollectionRequired())
    {
      compilerContext.pushCurrentPrivType(Authorizer.TRIGGER_PRIV);
      compilerContext.addRequiredTablePriv(triggerTableDescriptor);
      compilerContext.popCurrentPrivType();     
    }

    /*
 
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

       
        CompilerContext cc = getCompilerContext();
       
    if (whereClause != null)
    {
      cc.pushCurrentPrivType( Authorizer.SELECT_PRIV);

            int previousReliability = orReliability( CompilerContext.WHERE_CLAUSE_RESTRICTION );
      whereClause = whereClause.bindExpression(fromListParam,
                    whereSubquerys,
                    whereAggregates);
View Full Code Here

Examples of org.apache.derby.iapi.sql.compile.CompilerContext.pushCurrentPrivType()

    {
        throw StandardException.newException(SQLState.LANG_OPERATION_NOT_ALLOWED_ON_SESSION_SCHEMA_TABLES);
    }
    if (isPrivilegeCollectionRequired())
    {
      compilerContext.pushCurrentPrivType(Authorizer.TRIGGER_PRIV);
      compilerContext.addRequiredTablePriv(triggerTableDescriptor);
      compilerContext.popCurrentPrivType();     
    }

    /*
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.