| @@ 526-535 (lines=10) @@ | ||
| 523 | return 0; |
|
| 524 | } |
|
| 525 | ||
| 526 | public function testReturnsBinaryTypeDeclarationSQL() |
|
| 527 | { |
|
| 528 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array())); |
|
| 529 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 0))); |
|
| 530 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('length' => 9999999))); |
|
| 531 | ||
| 532 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true))); |
|
| 533 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 0))); |
|
| 534 | self::assertSame('BYTEA', $this->_platform->getBinaryTypeDeclarationSQL(array('fixed' => true, 'length' => 9999999))); |
|
| 535 | } |
|
| 536 | ||
| 537 | public function testDoesNotPropagateUnnecessaryTableAlterationOnBinaryType() |
|
| 538 | { |
|
| @@ 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 |
|