lib/Doctrine/DBAL/Platforms/AbstractPlatform.php 1 location
|
@@ 1607-1615 (lines=9) @@
|
1604 |
|
* |
1605 |
|
* @return string |
1606 |
|
*/ |
1607 |
|
public function getCommentOnColumnSQL($tableName, $columnName, $comment) |
1608 |
|
{ |
1609 |
|
$tableName = new Identifier($tableName); |
1610 |
|
$columnName = new Identifier($columnName); |
1611 |
|
$comment = $this->quoteStringLiteral($comment); |
1612 |
|
|
1613 |
|
return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . "." . $columnName->getQuotedName($this) . |
1614 |
|
" IS " . $comment; |
1615 |
|
} |
1616 |
|
|
1617 |
|
/** |
1618 |
|
* Returns the SQL to create inline comment on a column. |
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
|
@@ 370-378 (lines=9) @@
|
367 |
|
/** |
368 |
|
* {@inheritdoc} |
369 |
|
*/ |
370 |
|
public function getCommentOnColumnSQL($tableName, $columnName, $comment) |
371 |
|
{ |
372 |
|
$tableName = new Identifier($tableName); |
373 |
|
$columnName = new Identifier($columnName); |
374 |
|
$comment = $comment === null ? 'NULL' : $this->quoteStringLiteral($comment); |
375 |
|
|
376 |
|
return "COMMENT ON COLUMN " . $tableName->getQuotedName($this) . '.' . $columnName->getQuotedName($this) . |
377 |
|
" IS $comment"; |
378 |
|
} |
379 |
|
|
380 |
|
/** |
381 |
|
* {@inheritdoc} |