Code Duplication    Length = 5-5 lines in 2 locations

src/database/Postgres.php 2 locations

@@ 1597-1601 (lines=5) @@
1594
                }
1595
1596
                // Change user if necessary
1597
                if ($this->hasGrantOption() && $v[3] != $t->fields['relowner']) {
1598
                    $grantor = $v[3];
1599
                    $this->clean($grantor);
1600
                    $sql .= "SET SESSION AUTHORIZATION '{$grantor}';\n";
1601
                }
1602
1603
                // Output privileges with no GRANT OPTION
1604
                $sql .= 'GRANT ' . join(', ', $nongrant) . " ON TABLE \"{$t->fields['relname']}\" TO ";
@@ 1637-1641 (lines=5) @@
1634
                }
1635
1636
                // Change user if necessary
1637
                if ($this->hasGrantOption() && $v[3] != $t->fields['relowner']) {
1638
                    $grantor = $v[3];
1639
                    $this->clean($grantor);
1640
                    $sql .= "SET SESSION AUTHORIZATION '{$grantor}';\n";
1641
                }
1642
1643
                $sql .= 'GRANT ' . join(', ', $v[4]) . " ON \"{$t->fields['relname']}\" TO ";
1644
                switch ($v[0]) {