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