| @@ 914-930 (lines=17) @@ | ||
| 911 | /**  | 
                                |
| 912 | * @group DBAL-1004  | 
                                |
| 913 | */  | 
                                |
| 914 | public function testAltersTableColumnCommentWithExplicitlyQuotedIdentifiers()  | 
                                |
| 915 |     { | 
                                |
| 916 |         $table1 = new Table('"foo"', array(new Column('"bar"', Type::getType('integer')))); | 
                                |
| 917 |         $table2 = new Table('"foo"', array(new Column('"bar"', Type::getType('integer'), array('comment' => 'baz')))); | 
                                |
| 918 | ||
| 919 | $comparator = new Comparator();  | 
                                |
| 920 | ||
| 921 | $tableDiff = $comparator->diffTable($table1, $table2);  | 
                                |
| 922 | ||
| 923 |         self::assertInstanceOf('Doctrine\DBAL\Schema\TableDiff', $tableDiff); | 
                                |
| 924 | self::assertSame(  | 
                                |
| 925 | array(  | 
                                |
| 926 | 'COMMENT ON COLUMN "foo"."bar" IS \'baz\'',  | 
                                |
| 927 | ),  | 
                                |
| 928 | $this->_platform->getAlterTableSQL($tableDiff)  | 
                                |
| 929 | );  | 
                                |
| 930 | }  | 
                                |
| 931 | ||
| 932 | /**  | 
                                |
| 933 |      * {@inheritdoc} | 
                                |
| @@ 746-762 (lines=17) @@ | ||
| 743 | /**  | 
                                |
| 744 | * @group DBAL-1004  | 
                                |
| 745 | */  | 
                                |
| 746 | public function testAltersTableColumnCommentWithExplicitlyQuotedIdentifiers()  | 
                                |
| 747 |     { | 
                                |
| 748 |         $table1 = new Table('"foo"', array(new Column('"bar"', Type::getType('integer')))); | 
                                |
| 749 |         $table2 = new Table('"foo"', array(new Column('"bar"', Type::getType('integer'), array('comment' => 'baz')))); | 
                                |
| 750 | ||
| 751 | $comparator = new Comparator();  | 
                                |
| 752 | ||
| 753 | $tableDiff = $comparator->diffTable($table1, $table2);  | 
                                |
| 754 | ||
| 755 |         self::assertInstanceOf('Doctrine\DBAL\Schema\TableDiff', $tableDiff); | 
                                |
| 756 | self::assertSame(  | 
                                |
| 757 | array(  | 
                                |
| 758 | 'COMMENT ON COLUMN "foo"."bar" IS \'baz\'',  | 
                                |
| 759 | ),  | 
                                |
| 760 | $this->_platform->getAlterTableSQL($tableDiff)  | 
                                |
| 761 | );  | 
                                |
| 762 | }  | 
                                |
| 763 | ||
| 764 | /**  | 
                                |
| 765 |      * {@inheritdoc} | 
                                |
| @@ 671-687 (lines=17) @@ | ||
| 668 | /**  | 
                                |
| 669 | * @group DBAL-1004  | 
                                |
| 670 | */  | 
                                |
| 671 | public function testAltersTableColumnCommentWithExplicitlyQuotedIdentifiers()  | 
                                |
| 672 |     { | 
                                |
| 673 |         $table1 = new Table('"foo"', array(new Column('"bar"', Type::getType('integer')))); | 
                                |
| 674 |         $table2 = new Table('"foo"', array(new Column('"bar"', Type::getType('integer'), array('comment' => 'baz')))); | 
                                |
| 675 | ||
| 676 | $comparator = new Comparator();  | 
                                |
| 677 | ||
| 678 | $tableDiff = $comparator->diffTable($table1, $table2);  | 
                                |
| 679 | ||
| 680 |         self::assertInstanceOf('Doctrine\DBAL\Schema\TableDiff', $tableDiff); | 
                                |
| 681 | self::assertSame(  | 
                                |
| 682 | array(  | 
                                |
| 683 | 'COMMENT ON COLUMN "foo"."bar" IS \'baz\'',  | 
                                |
| 684 | ),  | 
                                |
| 685 | $this->_platform->getAlterTableSQL($tableDiff)  | 
                                |
| 686 | );  | 
                                |
| 687 | }  | 
                                |
| 688 | ||
| 689 | public function testQuotedTableNames()  | 
                                |
| 690 |     { | 
                                |