From c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 20 Nov 2006 12:34:15 +0000 Subject: Bug 361176: [PostgreSQL] Warning when creating tables for the first time Patch By Max Kanat-Alexander r=bkor, a=justdave --- Bugzilla/DB/Schema.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla/DB/Schema.pm') diff --git a/Bugzilla/DB/Schema.pm b/Bugzilla/DB/Schema.pm index c2c884e6d..c45419a37 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) . "\)"; -- cgit v1.2.3-24-g4f1b