Code Duplication    Length = 8-8 lines in 3 locations

src/database/Postgres.php 3 locations

@@ 2507-2514 (lines=8) @@
2504
            return -1;
2505
        }
2506
2507
        if ($tblcomment != '') {
2508
            $status = $this->setComment('TABLE', '', $name, $tblcomment, true);
2509
            if ($status) {
2510
                $this->rollbackTransaction();
2511
2512
                return -1;
2513
            }
2514
        }
2515
2516
        if ($comment_sql != '') {
2517
            $status = $this->execute($comment_sql);
@@ 5807-5814 (lines=8) @@
5804
            return -1;
5805
        }
5806
5807
        if ($typcomment != '') {
5808
            $status = $this->setComment('TYPE', $name, '', $typcomment, true);
5809
            if ($status) {
5810
                $this->rollbackTransaction();
5811
5812
                return -1;
5813
            }
5814
        }
5815
5816
        return $this->endTransaction();
5817
    }
@@ 5938-5945 (lines=8) @@
5935
            return -1;
5936
        }
5937
5938
        if ($typcomment != '') {
5939
            $status = $this->setComment('TYPE', $name, '', $typcomment, true);
5940
            if ($status) {
5941
                $this->rollbackTransaction();
5942
5943
                return -1;
5944
            }
5945
        }
5946
5947
        if ($comment_sql != '') {
5948
            $status = $this->execute($comment_sql);