Using Yii with Oracle through PDO

Comparing #3 with #4

Revision #4 was created by jwerner jwerner on Dec 8, 2010, 8:56:26 AM.

Minor typo fixed

Content

[...]
```

There was a bug in Yii 1.1.4 which caused that an attempt to pass charset as in first example would cause an error, because Yii tried to set charset with SET NAMES statement, which is not supported by PL/SQL on board Oracle. This bug has been corrected, but even so, if you use second approach, you'll be able to force Oracle to return result in any charset encoding you want (if it is supported by Oracle, of course).

### 2. Setting login information
Some (all?) versions of Oracle do
es non't support passing login and password as a part of DSN string. You'll have to pass it like this:


```php
'db'=>array
(
[...]