Browse files

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
  • Loading branch information...
1 parent 85f5750 commit cceb568520ab1401f3891f041d9b7884c544f486 @lorenzo lorenzo committed Mar 16, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 cake/tests/cases/libs/model/model_write.test.php
View
9 cake/tests/cases/libs/model/model_write.test.php
@@ -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();
@@ -3746,6 +3750,7 @@ function testProductUpdateAll() {
$this->assertEqual($results, $expected);
}
+
/**
* testProductUpdateAllWithoutForeignKey
*
@@ -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();

0 comments on commit cceb568

Please sign in to comment.