Skip to content

Commit

Permalink
Skiping some test in model_write test when using postgres as there is…
Browse files Browse the repository at this point in the history
… no way yet to do joins inside an update statement.

Possible enhancement would be transforming the join conditions into subquerys
  • Loading branch information
lorenzo committed Mar 16, 2010
1 parent 85f5750 commit cceb568
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cake/tests/cases/libs/model/model_write.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -3708,6 +3708,10 @@ function testFindAllForeignKey() {
* @return void
*/
function testProductUpdateAll() {
$this->skipIf(
$this->db->config['driver'] == 'postgres',
'%s Currently, there is no way of doing joins in an update statement in postgresql'
);
$this->loadFixtures('ProductUpdateAll', 'GroupUpdateAll');
$ProductUpdateAll =& new ProductUpdateAll();

Expand Down Expand Up @@ -3746,6 +3750,7 @@ function testProductUpdateAll() {

$this->assertEqual($results, $expected);
}

/**
* testProductUpdateAllWithoutForeignKey
*
Expand All @@ -3754,6 +3759,10 @@ function testProductUpdateAll() {
* @return void
*/
function testProductUpdateAllWithoutForeignKey() {
$this->skipIf(
$this->db->config['driver'] == 'postgres',
'%s Currently, there is no way of doing joins in an update statement in postgresql'
);
$this->loadFixtures('ProductUpdateAll', 'GroupUpdateAll');
$ProductUpdateAll =& new ProductUpdateAll();

Expand Down

0 comments on commit cceb568

Please sign in to comment.