Welcome Guest, Not a member yet? Register   Sign In
PDO driver still needs hack to work with SQLSRV in 2.1.3
#1

[eluser]ci_user[/eluser]
Just upgraded to 2.1.3 and had to hack the PDO driver again to work with SQLSRV. Line 82 in pdo_driver.php:
Code:
//EDIT To work with SQLSRV
//empty($this->database) OR $this->hostname .= ';dbname='.$this->database; //commented out
  if (strstr($this->hostname, 'sqlsrv') == TRUE){
   $this->hostname; //if  sqlsrv
    } else {
   $this->hostname .= ";dbname=".$this->database;
  }
  //end hack




Theme © iAndrew 2016 - Forum software by © MyBB