Changeset 3849
- Timestamp:
- 02/20/08 01:30:50 (17 months ago)
- Location:
- branches/0.10
- Files:
-
- 2 modified
-
lib/Doctrine/Task/Dql.php (modified) (1 diff)
-
tests/Import/MssqlTestCase.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/lib/Doctrine/Task/Dql.php
r3830 r3849 47 47 48 48 $params = $this->getArgument('params'); 49 $params = $params ? explode(',', $params): null;49 $params = $params ? explode(',', $params):array(); 50 50 51 51 $this->notify('executing: "' . $dql . '" (' . implode(', ', $params) . ')'); 52 52 53 $results = $query->query($dql );53 $results = $query->query($dql, $params, Doctrine::HYDRATE_ARRAY); 54 54 55 55 $this->_printResults($results); 56 56 } 57 57 58 protected function _printResults($ data)58 protected function _printResults($array) 59 59 { 60 $array = $data->toArray(true);61 62 60 $yaml = Doctrine_Parser::dump($array, 'yml'); 63 61 $lines = explode("\n", $yaml); 64 62 65 63 unset($lines[0]); 66 $lines[1] = $data->getTable()->getOption('name') . ':';67 64 68 65 foreach ($lines as $yamlLine) { -
branches/0.10/tests/Import/MssqlTestCase.php
r2388 r3849 50 50 $this->import->listTables(); 51 51 52 $this->assertEqual($this->adapter->pop(), "SELECT name FROM sysobjects WHERE type = 'U' ORDER BY name");52 $this->assertEqual($this->adapter->pop(), "SELECT name FROM sysobjects WHERE type = 'U' AND name <> 'dtproperties' ORDER BY name"); 53 53 } 54 54 public function testListTriggersExecutesSql()