Commit 347d8d13 authored by Juozas Kaziukenas's avatar Juozas Kaziukenas

Fixed fetchColumn()

Signed-off-by: 's avatarJuozas Kaziukenas <juozas@juokaz.com>
parent 1fd8256f
......@@ -236,6 +236,10 @@ class SqlsrvStatement implements \Doctrine\DBAL\Driver\Statement
*/
public function fetchColumn($columnIndex = 0)
{
if (sqlsrv_fetch($this->_sth) === false) {
throw SqlsrvException::fromErrorInfo($this->errorInfo());
}
return sqlsrv_get_field($this->_sth, $columnIndex);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment