|
|
@@ -2448,21 +2448,22 @@ class QueryTest extends TestCase
|
|
|
{
|
|
|
$query = new Query($this->connection);
|
|
|
|
|
|
- $expr = $query->newExpr()->equalFields('title', 'author_id');
|
|
|
+ $expr = $query->newExpr()->equalFields('article_id', 'author_id');
|
|
|
|
|
|
- $query->update('articles')
|
|
|
+ $query->update('comments')
|
|
|
->set($expr)
|
|
|
->where(['id' => 1]);
|
|
|
$result = $query->sql();
|
|
|
|
|
|
$this->assertQuotedQuery(
|
|
|
- 'UPDATE <articles> SET <title> = \(<author_id>\) WHERE <id> = :',
|
|
|
+ 'UPDATE <comments> SET <article_id> = \(<author_id>\) WHERE <id> = :',
|
|
|
$result,
|
|
|
!$this->autoQuote
|
|
|
);
|
|
|
|
|
|
$result = $query->execute();
|
|
|
$this->assertCount(1, $result);
|
|
|
+ $result->closeCursor();
|
|
|
}
|
|
|
|
|
|
/**
|