Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Cdbauthmanager On Ms Sql

$
0
0
Hi all,

So I am using Yii against an MS SQL database. When I use CdbAuthManager::getAuthItem(), for example, it fails because the function does not quote the column name in the the where() portion..

public function getAuthItem($name)
{
    $row=$this->db->createCommand()
        ->select()
        ->from($this->itemTable)
        ->where('name=:name', array(':name'=>$name))
        ->queryRow();


(to get the above to work, you would have to have [name]=:name)

Am I missing something here? Yii provides the schema for ms-sql definition of these tables (framework/web/auth/schema-mssql.sql) but then appears not to be able to work with it?

Viewing all articles
Browse latest Browse all 18717


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>