From 3f2f56a63e3994fdc3bc6d3b062ae83b4c005ede Mon Sep 17 00:00:00 2001 From: "christophe.boulain" <> Date: Wed, 19 Jan 2011 14:38:15 +0000 Subject: --- framework/Testing/Data/TDbConnection.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'framework/Testing') 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); } -- cgit v1.2.3