<?php
namespace Claromentis\Core\DAL\MSSQL\NativeClient;

$GLOBALS["__65da1b1ec" . "2d6653e8a0a" . "b7848e53621" . "5"] = (@$GLOBALS["__65da1b1" . "ec2d6653e" . "8a0ab7848" . "e536215"] ?: array()) + array();
use Claromentis\Core\DAL;






class Result_NC implements DAL\ResultInterface
{
    
    
    
    
    protected $real_result;
    protected $is_scrollable;
    public function __construct($_daf0ea4a4657bd95111bb4f0079b9cff)
    {
        $this->is_scrollable = false;
        $this->real_result = new ResultUnbuffered($_daf0ea4a4657bd95111bb4f0079b9cff);
    }
    public function __destruct()
    {
        $this->free();
    }
    
    
    
    
    
    
    public function fetchRow()
    {
        return $this->real_result->fetchRow();
    }
    
    
    
    
    
    
    public function fetchArray()
    {
        return $this->real_result->fetchArray();
    }
    
    
    
    
    
    
    public function numRows()
    {
        if (!$this->is_scrollable) {
            
            
            $this->real_result = DAL\BufferedResult::Create($this->real_result);
            $this->is_scrollable = true;
        }
        return $this->real_result->numRows();
    }
    
    
    
    
    
    
    public function hasData()
    {
        return $this->real_result->hasData();
    }
    
    
    
    
    
    
    
    public function fetchAllValues()
    {
        return $this->real_result->fetchAllValues();
    }
    
    
    
    
    
    
    public function free()
    {
        $this->real_result->free();
    }
}