Code Duplication    Length = 9-9 lines in 3 locations

lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php 1 location

@@ 672-680 (lines=9) @@
669
    /**
670
     * {@inheritdoc}
671
     */
672
    public function getCommentOnColumnSQL($tableName, $columnName, $comment)
673
    {
674
        $tableName = new Identifier($tableName);
675
        $columnName = new Identifier($columnName);
676
        $comment = $comment === null ? 'NULL' : $this->quoteStringLiteral($comment);
677
678
        return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . "." . $columnName->getQuotedName($this) .
679
            " IS $comment";
680
    }
681
682
    /**
683
     * {@inheritDoc}

lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php 1 location

@@ 368-376 (lines=9) @@
365
    /**
366
     * {@inheritdoc}
367
     */
368
    public function getCommentOnColumnSQL($tableName, $columnName, $comment)
369
    {
370
        $tableName = new Identifier($tableName);
371
        $columnName = new Identifier($columnName);
372
        $comment = $comment === null ? 'NULL' : $this->quoteStringLiteral($comment);
373
374
        return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . '.' . $columnName->getQuotedName($this) .
375
            " IS $comment";
376
    }
377
378
    /**
379
     * {@inheritdoc}

lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location

@@ 1617-1625 (lines=9) @@
1614
     *
1615
     * @return string
1616
     */
1617
    public function getCommentOnColumnSQL($tableName, $columnName, $comment)
1618
    {
1619
        $tableName = new Identifier($tableName);
1620
        $columnName = new Identifier($columnName);
1621
        $comment = $this->quoteStringLiteral($comment);
1622
1623
        return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . "." . $columnName->getQuotedName($this) .
1624
            " IS " . $comment;
1625
    }
1626
1627
    /**
1628
     * Returns the SQL to create inline comment on a column.