Project

General

Profile

Bug #22194 » 13670-whilelist-foreach_v2-dbal.patch

Administrator Admin, 2010-02-27 11:59

View differences:

typo3/sysext/dbal/class.ux_t3lib_db.php (Arbeitskopie)
break;
case 'adodb':
$sqlTables = $this->handlerInstance['_DEFAULT']->MetaTables('TABLES');
while (list($k, $theTable) = each($sqlTables)) {
foreach ($sqlTables as $k => $theTable) {
if (preg_match('/BIN\$/', $theTable)) continue; // skip tables from the Oracle 10 Recycle Bin
$whichTables[$theTable] = $theTable;
}
......
case 'adodb':
$keyRows = $this->handlerInstance[$this->lastHandlerKey]->MetaIndexes($tableName);
if ($keyRows !== FALSE) {
while (list($k, $theKey) = each($keyRows)) {
foreach ($keyRows as $k => $theKey) {
$theKey['Table'] = $tableName;
$theKey['Non_unique'] = (int) !$theKey['unique'];
$theKey['Key_name'] = str_replace($tableName.'_','',$k);
......
// now map multiple fields into multiple rows (we mimic MySQL, remember...)
$keycols = $theKey['columns'];
while (list($c, $theCol) = each($keycols)) {
foreach ($keycols as $c => $theCol) {
$theKey['Seq_in_index'] = $c+1;
$theKey['Column_name'] = $theCol;
$output[] = $theKey;
......
// now map multiple fields into multiple rows (we mimic MySQL, remember...)
if ($priKeyRow !== FALSE) {
while (list($c, $theCol) = each($priKeyRow)) {
foreach ($priKeyRow as $c => $theCol) {
$theKey['Seq_in_index'] = $c+1;
$theKey['Column_name'] = $theCol;
$output[] = $theKey;
(4-4/8)