From: mkanat%bugzilla.org <> Date: Mon, 20 Nov 2006 12:36:25 +0000 (+0000) Subject: Bug 361176: [PostgreSQL] Warning when creating tables for the first time X-Git-Tag: bugzilla-2.22.2~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb328bb047f225011e9709f0852ae73b6ba797d5;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 da241ec748..f4dd0a6ecb 100644 --- a/Bugzilla/DB/Schema.pm +++ b/Bugzilla/DB/Schema.pm @@ -1377,10 +1377,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) . "\)";