Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting \PDO::ATTR_ERRMODE doesn't work for SQLSRV #39

Closed
MitchProbst opened this issue May 19, 2016 · 0 comments
Closed

Setting \PDO::ATTR_ERRMODE doesn't work for SQLSRV #39

MitchProbst opened this issue May 19, 2016 · 0 comments
Labels

Comments

@MitchProbst
Copy link

Creating a new Database instance with SQLSRV throws the following:

The given attribute is only supported on the PDOStatement object.

$pdo = new \Slim\PDO\Database($dsn, $username, $password);

If I comment out the following line, the error doesn't get thrown and I can use the database object as intended.

\PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION,

@FaaPz FaaPz closed this as completed in 0667b98 May 29, 2016
@FaaPz FaaPz added the wontfix label May 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants