|
@@ 705-709 (lines=5) @@
|
| 702 |
|
*/ |
| 703 |
|
public function testGetColumnComment() |
| 704 |
|
{ |
| 705 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() |
| 706 |
|
&& ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() |
| 707 |
|
&& $this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 708 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 709 |
|
} |
| 710 |
|
|
| 711 |
|
$table = new Table('column_comment_test'); |
| 712 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 750-754 (lines=5) @@
|
| 747 |
|
*/ |
| 748 |
|
public function testAutomaticallyAppendCommentOnMarkedColumns() |
| 749 |
|
{ |
| 750 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() |
| 751 |
|
&& ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() |
| 752 |
|
&& $this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 753 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 754 |
|
} |
| 755 |
|
|
| 756 |
|
$table = new Table('column_comment_test2'); |
| 757 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 778-782 (lines=5) @@
|
| 775 |
|
*/ |
| 776 |
|
public function testCommentHintOnDateIntervalTypeColumn() |
| 777 |
|
{ |
| 778 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() |
| 779 |
|
&& ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() |
| 780 |
|
&& $this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 781 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 782 |
|
} |
| 783 |
|
|
| 784 |
|
$table = new Table('column_dateinterval_comment'); |
| 785 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 1055-1059 (lines=5) @@
|
| 1052 |
|
|
| 1053 |
|
public function testCommentStringsAreQuoted() |
| 1054 |
|
{ |
| 1055 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() |
| 1056 |
|
&& ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() |
| 1057 |
|
&& $this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 1058 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 1059 |
|
} |
| 1060 |
|
|
| 1061 |
|
$table = new Table('my_table'); |
| 1062 |
|
$table->addColumn('id', 'integer', array('comment' => "It's a comment with a quote")); |
|
@@ 1100-1104 (lines=5) @@
|
| 1097 |
|
*/ |
| 1098 |
|
public function testAlterColumnComment($comment1, $expectedComment1, $comment2, $expectedComment2) |
| 1099 |
|
{ |
| 1100 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() |
| 1101 |
|
&& ! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() |
| 1102 |
|
&& $this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 1103 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 1104 |
|
} |
| 1105 |
|
|
| 1106 |
|
$offlineTable = new Table('alter_column_comment_test'); |
| 1107 |
|
$offlineTable->addColumn('comment1', 'integer', array('comment' => $comment1)); |