diff options
author | christophe.boulain <> | 2011-01-19 14:38:15 +0000 |
---|---|---|
committer | christophe.boulain <> | 2011-01-19 14:38:15 +0000 |
commit | 3f2f56a63e3994fdc3bc6d3b062ae83b4c005ede (patch) | |
tree | d4f21b1db42582edc9f538ed0566b28304ab33fb /framework/Testing | |
parent | c5c397a55dd9d9026247377c3a0daa7517393d06 (diff) |
Diffstat (limited to 'framework/Testing')
-rwxr-xr-x | framework/Testing/Data/TDbConnection.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/framework/Testing/Data/TDbConnection.php b/framework/Testing/Data/TDbConnection.php index c34a07cb..5da0e26e 100755 --- a/framework/Testing/Data/TDbConnection.php +++ b/framework/Testing/Data/TDbConnection.php @@ -292,14 +292,12 @@ class TDbConnection extends TComponent switch (($driver=$pdo->getAttribute(PDO::ATTR_DRIVER_NAME))) { case 'mysql': - $stmt = $pdo->prepare('SET CHARACTER SET ?'); + case 'sqlite': + $stmt = $pdo->prepare('SET NAMES ?'); break; case 'pgsql': $stmt = $pdo->prepare('SET client_encoding TO ?'); break; - case 'sqlite': - $stmt = $pdo->prepare ('SET NAMES ?'); - break; default: throw new TDbException('dbconnection_unsupported_driver_charset', $driver); } |