Don't add a separating comma if we've already printed the last column definition

This was done when we'd have a C-only-field.

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@6649 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2009-02-15 12:46:45 +00:00
parent 99d6bf1529
commit d862f39362
2 changed files with 2 additions and 3 deletions

View File

@ -99,7 +99,7 @@ sub printStructFields
$$output .= "\t$field->{name} ";
printStructFieldType($output, $field);
$$output .= " UNIQUE" if grep(/unique/, @{$field->{"qualifiers"}});
$$output .= ",\n" if @fields or @constraints;
$$output .= ",\n" if (@fields and $fields[0]->{"type"} ne "C-only-field") or @constraints;
}
$$output .= "\n" unless ($field->{"type"} and $field->{"type"} =~ /C-only-field/);

View File

@ -446,8 +446,7 @@ CREATE TABLE `WEAPON` (
pWaterHitGraphic TEXT NOT NULL,
-- The trail used for in flight
pTrailGraphic TEXT,
pTrailGraphic TEXT
);
CREATE VIEW `WEAPONS` AS SELECT