简体   繁体   中英

How do you configure php5 and Oracle for use with Yii?

I had to install apache + php and configure it to work with an Oracle database. I used the settings described in this article: http://habrahabr.ru/post/116474/ . However, when I use Yii, although results are returned, the column is in upper case despite the fact that I have set the attribute to lower case.

In oracle column names are internally case insensitive, which means oracle will always convert unescaped column names (and tables) into UPPERCASE and return resul sets (unfortunatelly) also in UPPERCASE. To prevent from this you have to quote column names (and table names). You can use function "Yii::app()->db->quoteColumnName($column);" for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM