Examples of pushCurrentPrivType()


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

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

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

    {
        if ( !isPrivilegeCollectionRequired() ) { return; }
       
        CompilerContext cc = getCompilerContext();

        cc.pushCurrentPrivType( Authorizer.UPDATE_PRIV );
        try {
            for ( String columnName : explicitlySetColumns )
            {
                ColumnDescriptor    cd = targetTableDescriptor.getColumnDescriptor( columnName );
                cc.addRequiredColumnPriv( cd );
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();
    }
  }
View Full Code Here

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

        CompilerContext cc = getCompilerContext();
       
    if (whereClause != null)
    {
            cc.beginScope( CompilerContext.WHERE_SCOPE );
      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()

    {
        CompilerContext cc = getCompilerContext();
        final int previousReliability = cc.getReliability();

        cc.setReliability( previousReliability | CompilerContext.SQL_IN_ROUTINES_ILLEGAL );
        cc.pushCurrentPrivType( Authorizer.SELECT_PRIV );
           
        try {
            // this adds SELECT priv on referenced columns and EXECUTE privs on referenced routines
            value.bindExpression
                (
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.