internal OracleDataReader (OracleCommand command, OciStatementHandle statement, bool extHasRows ) 
		{
			this.command = command;
			this.hasRows = extHasRows;
			this.isClosed = false;
			this.schemaTable = ConstructSchemaTable ();
			this.statement = statement;
			this.statementType = statement.GetStatementType ();
	        }
Пример #2
0
 internal OracleDataReader(OracleCommand command, OciStatementHandle statement, bool extHasRows, CommandBehavior behavior)
 {
     this.command       = command;
     this.hasRows       = extHasRows;
     this.schemaTable   = ConstructSchemaTable();
     this.statement     = statement;
     this.statementType = statement.GetStatementType();
     this.behavior      = behavior;
 }
Пример #3
0
		internal OracleDataReader (OracleCommand command, OciStatementHandle statement, bool extHasRows, CommandBehavior behavior)
		{
			this.command = command;
			this.hasRows = extHasRows;
			this.schemaTable = ConstructSchemaTable ();
			this.statement = statement;
			this.statementType = statement.GetStatementType ();
			this.behavior = behavior;
		}
Пример #4
0
        private bool IsNonQuery(OciStatementHandle statementHandle)
        {
            // assumes Prepare() has been called prior to calling this function

            OciStatementType statementType = statementHandle.GetStatementType();

            if (statementType.Equals(OciStatementType.Select))
            {
                return(false);
            }

            return(true);
        }