|
@@ 721-725 (lines=5) @@
|
| 718 |
|
*/ |
| 719 |
|
public function testGetColumnComment() |
| 720 |
|
{ |
| 721 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 722 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 723 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 724 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 725 |
|
} |
| 726 |
|
|
| 727 |
|
$table = new Table('column_comment_test'); |
| 728 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 761-765 (lines=5) @@
|
| 758 |
|
*/ |
| 759 |
|
public function testAutomaticallyAppendCommentOnMarkedColumns() |
| 760 |
|
{ |
| 761 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 762 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 763 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 764 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 765 |
|
} |
| 766 |
|
|
| 767 |
|
$table = new Table('column_comment_test2'); |
| 768 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 789-793 (lines=5) @@
|
| 786 |
|
*/ |
| 787 |
|
public function testCommentHintOnDateIntervalTypeColumn() |
| 788 |
|
{ |
| 789 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 790 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 791 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 792 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 793 |
|
} |
| 794 |
|
|
| 795 |
|
$table = new Table('column_dateinterval_comment'); |
| 796 |
|
$table->addColumn('id', 'integer', array('comment' => 'This is a comment')); |
|
@@ 1062-1066 (lines=5) @@
|
| 1059 |
|
|
| 1060 |
|
public function testCommentStringsAreQuoted() |
| 1061 |
|
{ |
| 1062 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 1063 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 1064 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 1065 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 1066 |
|
} |
| 1067 |
|
|
| 1068 |
|
$table = new Table('my_table'); |
| 1069 |
|
$table->addColumn('id', 'integer', array('comment' => "It's a comment with a quote")); |
|
@@ 1107-1111 (lines=5) @@
|
| 1104 |
|
*/ |
| 1105 |
|
public function testAlterColumnComment($comment1, $expectedComment1, $comment2, $expectedComment2) |
| 1106 |
|
{ |
| 1107 |
|
if ( ! $this->_conn->getDatabasePlatform()->supportsInlineColumnComments() && |
| 1108 |
|
! $this->_conn->getDatabasePlatform()->supportsCommentOnStatement() && |
| 1109 |
|
$this->_conn->getDatabasePlatform()->getName() != 'mssql') { |
| 1110 |
|
$this->markTestSkipped('Database does not support column comments.'); |
| 1111 |
|
} |
| 1112 |
|
|
| 1113 |
|
$offlineTable = new Table('alter_column_comment_test'); |
| 1114 |
|
$offlineTable->addColumn('comment1', 'integer', array('comment' => $comment1)); |