Sunday, May 12, 2013

[Codeigniter] sqlsrv_driver.php (bug)

Edit file "/system/database/drivers/sqlsrv/sqlsrv_driver.php"
1. Line 87:
OLD:
function db_pconnect(){$this->db_connect(TRUE);}
NEW:
function db_pconnect(){return $this->db_connect(TRUE);}

2. Line 274 :  {BUG} : RETURN WHITE BLANK SCREEN ERROR !
OLD:
function affected_rows(){return @sqlrv_rows_affected($this->conn_id);}
NEW:
function affected_rows(){return sqlsrv_rows_affected($this->result_id);}