예제 #1
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;
 }
예제 #2
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);
        }