| @@ 64-78 (lines=15) @@ | ||
| 61 | parent::testGeneratesCreateIndexWithAdvancedPlatformOptionsSQL(); |
|
| 62 | } |
|
| 63 | ||
| 64 | public function testThrowsExceptionOnInvalidWithNullsNotDistinctIndexOptions() |
|
| 65 | { |
|
| 66 | $this->expectException('UnexpectedValueException'); |
|
| 67 | ||
| 68 | $this->_platform->getCreateIndexSQL( |
|
| 69 | new Index( |
|
| 70 | 'fooindex', |
|
| 71 | array('a', 'b'), |
|
| 72 | false, |
|
| 73 | false, |
|
| 74 | array('with_nulls_distinct', 'with_nulls_not_distinct') |
|
| 75 | ), |
|
| 76 | 'footable' |
|
| 77 | ); |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||
| @@ 462-477 (lines=16) @@ | ||
| 459 | $this->_platform->getCreateConstraintSQL($this->createMock('\Doctrine\DBAL\Schema\Constraint'), 'footable'); |
|
| 460 | } |
|
| 461 | ||
| 462 | public function testGeneratesCreateIndexWithAdvancedPlatformOptionsSQL() |
|
| 463 | { |
|
| 464 | self::assertEquals( |
|
| 465 | 'CREATE VIRTUAL UNIQUE CLUSTERED INDEX fooindex ON footable (a, b) FOR OLAP WORKLOAD', |
|
| 466 | $this->_platform->getCreateIndexSQL( |
|
| 467 | new Index( |
|
| 468 | 'fooindex', |
|
| 469 | array('a', 'b'), |
|
| 470 | true, |
|
| 471 | false, |
|
| 472 | array('virtual', 'clustered', 'for_olap_workload') |
|
| 473 | ), |
|
| 474 | 'footable' |
|
| 475 | ) |
|
| 476 | ); |
|
| 477 | } |
|
| 478 | ||
| 479 | public function testDoesNotSupportIndexDeclarationInCreateAlterTableStatements() |
|
| 480 | { |
|