Project

General

Profile

Bug #24156 » 16501_core.diff

Administrator Admin, 2010-11-30 16:11

View differences:

t3lib/class.t3lib_sqlparser.php (working copy)
$fieldsKeys[] = $fN . ' ' . $this->compileFieldCfg($fCfg['definition']);
}
foreach ($components['KEYS'] as $kN => $kCfg) {
if ($kN == 'PRIMARYKEY') {
if ($kN === 'PRIMARYKEY') {
$fieldsKeys[] = 'PRIMARY KEY (' . implode(',', $kCfg) . ')';
} elseif ($kN == 'UNIQUE') {
$fieldsKeys[] = 'UNIQUE ' . $kN . ' (' . implode(',', $kCfg) . ')';
} elseif ($kN === 'UNIQUE') {
$key = key($kCfg);
$fields = current($kCfg);
$fieldsKeys[] = 'UNIQUE KEY ' . $key . ' (' . implode(',', $fields) . ')';
} else {
$fieldsKeys[] = 'KEY ' . $kN . ' (' . implode(',', $kCfg) . ')';
}
(1-1/2)