laravel pdo_connection mssql

1

I'm using laravel 5.6 in ubuntu 16 and I'm trying to connect it in mssql 2012. I'm using the db_lib library because this is project requirement. When I try to connect this error:

 PDOException  : SQLSTATE[IM001]: Driver does not support this 
 function: driver does not support that attribute

 at /home/agner/Documentos/ubuntu-laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:71

 public function getServerVersion()
 70|     {
 > 71|         return PDO::getAttribute(PDO::ATTR_SERVER_VERSION);
 72|     }

Exception trace:

1   PDO::getAttribute()
  /home/agner/Documentos/ubuntu-laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:71

2 Doctrine\DBAL\Driver\PDOConnection::getServerVersion()
/home/agner/Documentos/ubuntu- laravel/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:496
    
asked by anonymous 16.05.2018 / 16:09

0 answers