DBAL-243: setCharset raises an error when using pdo_sqlite #1419

Closed
doctrinebot opened this Issue Mar 25, 2012 · 2 comments

2 participants

@doctrinebot

Jira issue originally created by user felicitus:

When I attempt to use setCharset("utf8") with pdo_sqlite, this fails.

I know that pdo_sqlite doesn't support SET NAMES utf8, however, this should be caught by the driver (like: throwing a NotSupportedException) or simply ignore setCharset (mainly because if you allow the user to choose their backend, developers don't need to introduce special cases for driver handling).

@doctrinebot

Comment created by @beberlei:

Removed Connection#setcharsetSQL() - Use DriverManager::getConnection(array('charset' => 'UTF8', ...)); instead.

@doctrinebot

Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added the Bug label Dec 6, 2015
@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added this to the 2.3 milestone Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment