|
@@ 699-703 (lines=5) @@
|
| 696 |
|
*/ |
| 697 |
|
public function testGetColumnComment() |
| 698 |
|
{ |
| 699 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 700 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 701 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 702 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 703 |
|
} |
| 704 |
|
|
| 705 |
|
$table = new Table('column_comment_test'); |
| 706 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 739-743 (lines=5) @@
|
| 736 |
|
*/ |
| 737 |
|
public function testAutomaticallyAppendCommentOnMarkedColumns() |
| 738 |
|
{ |
| 739 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 740 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 741 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 742 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 743 |
|
} |
| 744 |
|
|
| 745 |
|
$table = new Table('column_comment_test2'); |
| 746 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 767-771 (lines=5) @@
|
| 764 |
|
*/ |
| 765 |
|
public function testCommentHintOnDateIntervalTypeColumn() |
| 766 |
|
{ |
| 767 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 768 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 769 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 770 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 771 |
|
} |
| 772 |
|
|
| 773 |
|
$table = new Table('column_dateinterval_comment'); |
| 774 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 1035-1039 (lines=5) @@
|
| 1032 |
|
|
| 1033 |
|
public function testCommentStringsAreQuoted() |
| 1034 |
|
{ |
| 1035 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 1036 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 1037 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 1038 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 1039 |
|
} |
| 1040 |
|
|
| 1041 |
|
$table = new Table('my_table'); |
| 1042 |
|
$table->addColumn('id', 'integer', array('comment' => "It's a comment with a quote")); |
|
@@ 1080-1084 (lines=5) @@
|
| 1077 |
|
*/ |
| 1078 |
|
public function testAlterColumnComment($comment1, $expectedComment1, $comment2, $expectedComment2) |
| 1079 |
|
{ |
| 1080 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 1081 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 1082 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 1083 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 1084 |
|
} |
| 1085 |
|
|
| 1086 |
|
$offlineTable = new Table('alter_column_comment_test'); |
| 1087 |
|
$offlineTable->addColumn('comment1', 'integer', array('comment' => $comment1)); |