diff options
-rw-r--r-- | framework/Data/TDbConnection.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/framework/Data/TDbConnection.php b/framework/Data/TDbConnection.php index 4dccbad1..9078dfe0 100644 --- a/framework/Data/TDbConnection.php +++ b/framework/Data/TDbConnection.php @@ -217,14 +217,12 @@ class TDbConnection extends TComponent switch ($this->_pdo->getAttribute(PDO::ATTR_DRIVER_NAME))
{
case 'mysql':
+ case 'sqlite':
$stmt = $this->_pdo->prepare('SET NAMES ?');
break;
case 'pgsql':
$stmt = $this->_pdo->prepare('SET client_encoding TO ?');
break;
- case 'sqlite':
- $stmt = $pdo->prepare ('SET NAMES ?');
- break;
default:
throw new TDbException('dbconnection_unsupported_driver_charset', $driver);
}
|