Skip to content

Commit d240180

Browse files
committed
- Removed unused code
1 parent 91ef1a0 commit d240180

File tree

2 files changed

+0
-468
lines changed

2 files changed

+0
-468
lines changed

Schema/DblibSchemaManager.php

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -35,41 +35,4 @@ public function listSequences($database = null)
3535

3636
return array_map([$this->_conn->formatter, 'fixSequenceName'], $tableNames);
3737
}
38-
39-
/**
40-
* lists table views
41-
*
42-
* @param string $table database table name
43-
* @return array
44-
*/
45-
public function listTableViews($table)
46-
{
47-
$keyName = 'INDEX_NAME';
48-
$pkName = 'PK_NAME';
49-
if ($this->_conn->getAttribute(Doctrine::ATTR_PORTABILITY) & Doctrine::PORTABILITY_FIX_CASE) {
50-
if ($this->_conn->getAttribute(Doctrine::ATTR_FIELD_CASE) == CASE_LOWER) {
51-
$keyName = strtolower($keyName);
52-
$pkName = strtolower($pkName);
53-
} else {
54-
$keyName = strtoupper($keyName);
55-
$pkName = strtoupper($pkName);
56-
}
57-
}
58-
$table = $this->_conn->quote($table, 'text');
59-
$query = 'EXEC sp_statistics @table_name = ' . $table;
60-
$indexes = $this->_conn->fetchColumn($query, $keyName);
61-
62-
$query = 'EXEC sp_pkeys @table_name = ' . $table;
63-
$pkAll = $this->_conn->fetchColumn($query, $pkName);
64-
65-
$result = [];
66-
67-
foreach ($indexes as $index) {
68-
if (!in_array($index, $pkAll) && $index != null) {
69-
$result[] = $this->_conn->formatter->fixIndexName($index);
70-
}
71-
}
72-
73-
return $result;
74-
}
7538
}

0 commit comments

Comments
 (0)