1
0
mirror of synced 2025-01-18 06:21:40 +03:00
This commit is contained in:
zYne 2007-06-10 19:23:46 +00:00
parent 1238a5000a
commit 8e071b75e3
2 changed files with 2 additions and 3 deletions

View File

@ -95,7 +95,7 @@ class Doctrine_Expression_TestCase extends Doctrine_UnitTestCase {
$this->assertEqual($this->expr->locate('id', 3), 'LOCATE(id, 3)'); $this->assertEqual($this->expr->locate('id', 3), 'LOCATE(id, 3)');
} }
public function testConcatReturnsValidSql() { 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() { public function testSubstringReturnsValidSql() {
$this->assertEqual($this->expr->substring('id', 3), 'SUBSTRING(id FROM 3)'); $this->assertEqual($this->expr->substring('id', 3), 'SUBSTRING(id FROM 3)');

View File

@ -44,8 +44,7 @@ class Doctrine_Import_Oracle_TestCase extends Doctrine_UnitTestCase
{ {
$this->import->listTableColumns('table'); $this->import->listTableColumns('table');
$q = "SELECT column_name, data_type, data_length, nullable, data_default from all_tab_columns" $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";
. " WHERE table_name = 'TABLE' ORDER BY column_name";
$this->assertEqual($this->adapter->pop(), $q); $this->assertEqual($this->adapter->pop(), $q);
} }