summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2006-11-20 13:34:15 +0100
committermkanat%bugzilla.org <>2006-11-20 13:34:15 +0100
commitc0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf (patch)
tree1d7874fbdc8bad9ba2365efab6272f18c78eb054 /Bugzilla
parent9a9708d1d4d4bb542dd96c64bf7c4ccaf83dc65e (diff)
downloadbugzilla-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.tar.gz
bugzilla-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.tar.xz
Bug 361176: [PostgreSQL] Warning when creating tables for the first time
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB/Schema.pm4
1 files changed, 2 insertions, 2 deletions
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) . "\)";