mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
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:
parent
85f5750c81
commit
cceb568520
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue