CodeIgniter Forums
Unknown type in sqlsrv_buffered_query::sqlsrv_buffered_query in - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forum-6.html)
+--- Forum: Issues (https://forum.codeigniter.com/forum-19.html)
+--- Thread: Unknown type in sqlsrv_buffered_query::sqlsrv_buffered_query in (/thread-64761.html)



Unknown type in sqlsrv_buffered_query::sqlsrv_buffered_query in - mertdogan - 03-22-2016

I have a view in ms sql server database:

Code:
SELECT        TOP (100) PERCENT dbo.YORUMLAR.ID, MAX(dbo.YORUMLAR.GONDERIMTARIHI) AS GONDERIMTARIHI, MAX(ALT_YORUMLAR.GONDERIMTARIHI) AS ALTYORUMGONDERIMTARIHI,
                         MAX(ALT_YORUM_YORUMLARI.GONDERIMTARIHI) AS ALTYORUMYORUMUGONDERIMTARIHI, MAX(dbo.YORUM_BEGENMELERI.BEGENMETARIHI) AS BEGENMETARIHI,
                         dbo.fnGreatest(MAX(dbo.YORUMLAR.GONDERIMTARIHI), MAX(ALT_YORUMLAR.GONDERIMTARIHI), MAX(ALT_YORUM_YORUMLARI.GONDERIMTARIHI), MAX(dbo.YORUM_BEGENMELERI.BEGENMETARIHI))
                         AS SIRALAMATARIHI
FROM            dbo.YORUMLAR AS ALT_YORUM_YORUMLARI RIGHT OUTER JOIN
                         dbo.YORUMLAR AS ALT_YORUMLAR ON ALT_YORUM_YORUMLARI.USTYORUMID = ALT_YORUMLAR.ID RIGHT OUTER JOIN
                         dbo.YORUMLAR ON ALT_YORUMLAR.USTYORUMID = dbo.YORUMLAR.ID LEFT OUTER JOIN
                         dbo.YORUM_BEGENMELERI ON dbo.YORUMLAR.ID = dbo.YORUM_BEGENMELERI.YORUMID
GROUP BY dbo.YORUMLAR.ID, dbo.YORUMLAR.USTYORUMID
HAVING        (dbo.YORUMLAR.USTYORUMID = 0)
ORDER BY dbo.fnGreatest(MAX(dbo.YORUMLAR.GONDERIMTARIHI), MAX(ALT_YORUMLAR.GONDERIMTARIHI), MAX(ALT_YORUM_YORUMLARI.GONDERIMTARIHI),
                         MAX(dbo.YORUM_BEGENMELERI.BEGENMETARIHI)) DESC, dbo.YORUMLAR.ID DESC

When i want to list results of view with:

Code:
$db=$this->load->database('sohbetarenasi',TRUE);
print_r($db->select('*')->from('vwYORUMSIRALAMASI')->get()->result());die();


This error occurs:
Fatal error: Unknown type in sqlsrv_buffered_query:Confusedqlsrv_buffered_query in C:\inetpub\wwwroot\mysystem\system\database\drivers\sqlsrv\sqlsrv_driver.php on line 192