Skip to content

Commit cceb568

Browse files
committed
Skiping some test in model_write test when using postgres as there is no way yet to do joins inside an update statement.
Possible enhancement would be transforming the join conditions into subquerys
1 parent 85f5750 commit cceb568

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

cake/tests/cases/libs/model/model_write.test.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,6 +3708,10 @@ function testFindAllForeignKey() {
37083708
* @return void
37093709
*/
37103710
function testProductUpdateAll() {
3711+
$this->skipIf(
3712+
$this->db->config['driver'] == 'postgres',
3713+
'%s Currently, there is no way of doing joins in an update statement in postgresql'
3714+
);
37113715
$this->loadFixtures('ProductUpdateAll', 'GroupUpdateAll');
37123716
$ProductUpdateAll =& new ProductUpdateAll();
37133717

@@ -3746,6 +3750,7 @@ function testProductUpdateAll() {
37463750

37473751
$this->assertEqual($results, $expected);
37483752
}
3753+
37493754
/**
37503755
* testProductUpdateAllWithoutForeignKey
37513756
*
@@ -3754,6 +3759,10 @@ function testProductUpdateAll() {
37543759
* @return void
37553760
*/
37563761
function testProductUpdateAllWithoutForeignKey() {
3762+
$this->skipIf(
3763+
$this->db->config['driver'] == 'postgres',
3764+
'%s Currently, there is no way of doing joins in an update statement in postgresql'
3765+
);
37573766
$this->loadFixtures('ProductUpdateAll', 'GroupUpdateAll');
37583767
$ProductUpdateAll =& new ProductUpdateAll();
37593768

0 commit comments

Comments
 (0)