| @@ 480-489 (lines=10) @@ | ||
| 477 | return 0; |
|
| 478 | } |
|
| 479 | ||
| 480 | public function testReturnsBinaryTypeDeclarationSQL() |
|
| 481 | { |
|
| 482 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array())); |
|
| 483 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0))); |
|
| 484 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999))); |
|
| 485 | ||
| 486 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true))); |
|
| 487 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0))); |
|
| 488 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999))); |
|
| 489 | } |
|
| 490 | ||
| 491 | /** |
|
| 492 | * @group DBAL-234 |
|
| @@ 583-592 (lines=10) @@ | ||
| 580 | return 0; |
|
| 581 | } |
|
| 582 | ||
| 583 | public function testReturnsBinaryTypeDeclarationSQL() |
|
| 584 | { |
|
| 585 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array())); |
|
| 586 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0))); |
|
| 587 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999))); |
|
| 588 | ||
| 589 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true))); |
|
| 590 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0))); |
|
| 591 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999))); |
|
| 592 | } |
|
| 593 | ||
| 594 | public function testDoesNotPropagateUnnecessaryTableAlterationOnBinaryType() |
|
| 595 | { |
|