Bug #24156 » 16501_core.diff
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) . ')';
|
||
}
|