diff --git a/tests/ExpressionTestCase.php b/tests/ExpressionTestCase.php index 7baa760f2..d342f9594 100644 --- a/tests/ExpressionTestCase.php +++ b/tests/ExpressionTestCase.php @@ -95,7 +95,7 @@ class Doctrine_Expression_TestCase extends Doctrine_UnitTestCase { $this->assertEqual($this->expr->locate('id', 3), 'LOCATE(id, 3)'); } public function testConcatReturnsValidSql() { - $this->assertEqual($this->expr->concat(array('id', 'type')), 'CONCAT(id, type)'); + $this->assertEqual($this->expr->concat('id', 'type'), 'CONCAT(id, type)'); } public function testSubstringReturnsValidSql() { $this->assertEqual($this->expr->substring('id', 3), 'SUBSTRING(id FROM 3)'); diff --git a/tests/Import/OracleTestCase.php b/tests/Import/OracleTestCase.php index 56a35c7e2..e11fd3262 100644 --- a/tests/Import/OracleTestCase.php +++ b/tests/Import/OracleTestCase.php @@ -44,8 +44,7 @@ class Doctrine_Import_Oracle_TestCase extends Doctrine_UnitTestCase { $this->import->listTableColumns('table'); - $q = "SELECT column_name, data_type, data_length, nullable, data_default from all_tab_columns" - . " WHERE table_name = 'TABLE' ORDER BY column_name"; + $q = "SELECT column_name, data_type, data_length, nullable, data_default, data_scale, data_precision FROM all_tab_columns WHERE table_name = 'TABLE' ORDER BY column_name"; $this->assertEqual($this->adapter->pop(), $q); }