Pārlūkot izejas kodu

ZF-7698 - Fixed describeTable() to free statement to avoid pending results error

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21882 44c647ce-9c0f-0410-b52a-842ac1e357ba
juokaz 15 gadi atpakaļ
vecāks
revīzija
f37d72eae6
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      library/Zend/Db/Adapter/Sqlsrv.php

+ 3 - 0
library/Zend/Db/Adapter/Sqlsrv.php

@@ -437,6 +437,9 @@ class Zend_Db_Adapter_Sqlsrv extends Zend_Db_Adapter_Abstract
         $sql    = "exec sp_columns @table_name = " . $this->quoteIdentifier($tableName, true);
         $sql    = "exec sp_columns @table_name = " . $this->quoteIdentifier($tableName, true);
         $stmt   = $this->query($sql);
         $stmt   = $this->query($sql);
         $result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
         $result = $stmt->fetchAll(Zend_Db::FETCH_NUM);
+		
+		// ZF-7698
+		$stmt->closeCursor();
         
         
         if (count($result) == 0) {
         if (count($result) == 0) {
             return array();
             return array();