bug 629630

This commit is contained in:
Marc Delisle
2002-11-03 11:22:13 +00:00
parent f278fc2935
commit 4962f845e5
2 changed files with 4 additions and 11 deletions

View File

@@ -87,17 +87,6 @@ if (isset($submit)) {
}
if ($field_extra[$i] != '') {
$query .= ' ' . $field_extra[$i];
// An auto_increment field must be use as a primary key
if ($field_extra[$i] == 'AUTO_INCREMENT' && isset($field_primary)) {
$primary_cnt = count($field_primary);
for ($j = 0; $j < $primary_cnt && $field_primary[$j] != $i; $j++) {
// void
} // end for
if ($field_primary[$j] == $i) {
$query .= ' PRIMARY KEY';
unset($field_primary[$j]);
} // end if
} // end if (auto_increment)
}
$query .= ', ';
$sql_query .= $query;