diff options
| author | rojaro <> | 2011-01-27 14:12:25 +0000 | 
|---|---|---|
| committer | rojaro <> | 2011-01-27 14:12:25 +0000 | 
| commit | d016d6c7f9d4f0ca44e004c2cfad5d98be1e86c7 (patch) | |
| tree | bd52b00f78ab7edba1e7763d2fbec6140536a98f | |
| parent | 53eda19fa2efed997405075ad003aa7a94d31563 (diff) | |
fixed #307
| -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);
  		}
 | 
