Examples of pushCurrentPrivType()


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

        {
            ColumnDescriptor    colDesc = rc.getColumnDescriptor();
           
            if ( colDesc != null )
            {
                cc.pushCurrentPrivType( Authorizer.SELECT_PRIV );
                cc.addRequiredColumnPriv( colDesc );
                cc.popCurrentPrivType();
            }
        }
    }
View Full Code Here

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

    private void    addRoutinePrivilege( StaticMethodCallNode routine )
        throws StandardException
    {
        CompilerContext cc = getCompilerContext();
       
        cc.pushCurrentPrivType( Authorizer.EXECUTE_PRIV );
        cc.addRequiredRoutinePriv( routine.ad );
        cc.popCurrentPrivType();
    }

    /** Get a list of CastNodes in an expression */
 
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()

    }

        CompilerContext compilerContext = getCompilerContext();
       
        // Do not need privileges to execute constraints
    compilerContext.pushCurrentPrivType( Authorizer.NULL_PRIV);
    try {
      getAllRelevantConstraints(dataDictionary,  
                      targetTableDescriptor,
                      changedColumnIds);
      createConstraintDependencies(dataDictionary, relevantCdl, dependent);
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()

       
        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

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()

    }

        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()

        //    ANY column, not necessarily the first column. But since
        //    the constructor for column privilege requires us to pass
        //    a column descriptor, we just choose the first column for
        //    MIN_SELECT_PRIV requirement.
        final CompilerContext cc = getCompilerContext();
        cc.pushCurrentPrivType(Authorizer.MIN_SELECT_PRIV);
        for (int index = 0; index < size; index++) {
            fromTable = (FromTable) elementAt(index);
            if (fromTable.isPrivilegeCollectionRequired() &&
                    fromTable.isBaseTable() && !fromTable.forUpdate()) {
                // This is a base table in the FROM list of a SELECT statement.
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.