Cdbauthmanager On Ms Sql

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?