| @@ 564-573 (lines=10) @@ | ||
| 561 | return 0; |
|
| 562 | } |
|
| 563 | ||
| 564 | public function testReturnsBinaryTypeDeclarationSQL() |
|
| 565 | { |
|
| 566 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array())); |
|
| 567 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0))); |
|
| 568 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999))); |
|
| 569 | ||
| 570 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true))); |
|
| 571 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0))); |
|
| 572 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999))); |
|
| 573 | } |
|
| 574 | ||
| 575 | public function testDoesNotPropagateUnnecessaryTableAlterationOnBinaryType() |
|
| 576 | { |
|
| @@ 486-495 (lines=10) @@ | ||
| 483 | return 0; |
|
| 484 | } |
|
| 485 | ||
| 486 | public function testReturnsBinaryTypeDeclarationSQL() |
|
| 487 | { |
|
| 488 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array())); |
|
| 489 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0))); |
|
| 490 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999))); |
|
| 491 | ||
| 492 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true))); |
|
| 493 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0))); |
|
| 494 | self::assertSame('BLOB', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999))); |
|
| 495 | } |
|
| 496 | ||
| 497 | /** |
|
| 498 | * @group DBAL-234 |
|