This commit is contained in:
parent
1238a5000a
commit
8e071b75e3
@ -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)');
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user