diff options
author | mkanat%bugzilla.org <> | 2006-11-20 12:34:15 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-11-20 12:34:15 +0000 |
commit | c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf (patch) | |
tree | 1d7874fbdc8bad9ba2365efab6272f18c78eb054 /Bugzilla | |
parent | 9a9708d1d4d4bb542dd96c64bf7c4ccaf83dc65e (diff) | |
download | bugs-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.tar bugs-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.tar.gz bugs-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.tar.bz2 bugs-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.tar.xz bugs-c0c352712b1d0a4b5d8bc2bb38be8d0bb013fbdf.zip |
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.pm | 4 |
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) . "\)"; |