From: mkanat%bugzilla.org <> Date: Mon, 20 Nov 2006 12:34:15 +0000 (+0000) Subject: Bug 361176: [PostgreSQL] Warning when creating tables for the first time X-Git-Tag: bugzilla-2.23.4~203 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf;p=thirdparty%2Fbugzilla.git Bug 361176: [PostgreSQL] Warning when creating tables for the first time Patch By Max Kanat-Alexander r=bkor, a=justdave --- diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index c2c884e6d5..c45419a376 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1488,10 +1488,10 @@ sub _get_create_index_ddl { =cut - my($self, $table_name, $index_name, $index_fields, $index_type) = @_; + my ($self, $table_name, $index_name, $index_fields, $index_type) = @_; my $sql = "CREATE "; - $sql .= "$index_type " if ($index_type eq 'UNIQUE'); + $sql .= "$index_type " if ($index_type && $index_type eq 'UNIQUE'); $sql .= "INDEX $index_name ON $table_name \(" . join(", ", @$index_fields) . "\)";