Difference between #3 and #4 of
Using Yii with Oracle through PDO

Revision #4 has been created by jwerner on Dec 8, 2010, 8:56:26 AM with the memo:

Minor typo fixed
« previous (#3) next (#5) »

Changes

Title unchanged

Using Yii with Oracle through PDO

Category unchanged

Tips

Yii version unchanged

Tags unchanged

oracle, pdo oci php

Content changed

[...]
```

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
(
[...]
1 0
7 followers
Viewed: 71 054 times
Version: 1.1
Category: Tips
Written by: Trejder
Last updated by: waterloomatt
Created on: Nov 5, 2010
Last updated: 13 years ago
Update Article

Revisions

View all history