Commit c0c35271 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 361176: [PostgreSQL] Warning when creating tables for the first time

Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=bkor, a=justdave
parent 9a9708d1
...@@ -1488,10 +1488,10 @@ sub _get_create_index_ddl { ...@@ -1488,10 +1488,10 @@ sub _get_create_index_ddl {
=cut =cut
my($self, $table_name, $index_name, $index_fields, $index_type) = @_; my ($self, $table_name, $index_name, $index_fields, $index_type) = @_;
my $sql = "CREATE "; 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 \(" . $sql .= "INDEX $index_name ON $table_name \(" .
join(", ", @$index_fields) . "\)"; join(", ", @$index_fields) . "\)";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment