yiisoft/yii — pull request #525 by cebe (2012-03-19 16:20:37+00:00)
Title: rework of pull request #354 on issue #124

cleanup of @DaSourcerer's pull request #354 on issue #124

the new CMysqlCommandBuilder overides the complete method but the only difference to the original implementation is

line 61-63 and 100-103 each:

```
- $sql="UPDATE {$table->rawName} SET ".implode(', ',$fields);
+ $sql="UPDATE {$table->rawName}";
$sql=$this->applyJoin($sql,$criteria->join);
+ $sql.=" SET ".implode(', ',$fields);
```
and lines 68 + 106:

```
- $command=$this->_connection->createCommand($sql);
+ $command=$this->getDbConnection()->createCommand($sql);
```

Tested this with my application and a unit test is also attached so I think it is ready for merge now.