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
This commit is contained in:
José Lorenzo Rodríguez 2010-03-16 18:46:04 -04:30
parent 85f5750c81
commit cceb568520

View file

@ -3708,6 +3708,10 @@ class ModelWriteTest extends BaseModelTest {
* @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 @@ class ModelWriteTest extends BaseModelTest {
$this->assertEqual($results, $expected);
}
/**
* testProductUpdateAllWithoutForeignKey
*
@ -3754,6 +3759,10 @@ class ModelWriteTest extends BaseModelTest {
* @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();