diff options
Diffstat (limited to 'framework/Testing/Data')
-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); } |