| |
---|
| | $actual->getValue( 0, 'DATA_SCALE' ), |
---|
| | $this->markAdjustments['incorrectLength'] |
---|
| | ); |
---|
| | |
---|
| | $this->assertGreaterThanOrEqual( $minLength, $actual->getValue( 0, 'DATA_PRECISION' ), $errorString ); |
---|
| | if ( $minLength > 0 ) |
---|
| | { |
---|
| | $this->assertGreaterThanOrEqual( $minLength, $actual->getValue( 0, 'DATA_PRECISION' ), $errorString ); |
---|
| | } |
---|
| | |
---|
| | $this->assertLessThanOrEqual( $maxLength, $actual->getValue( 0, 'DATA_PRECISION' ), $errorString ); |
---|
| | |
---|
| | if ( $maxLength > 0 ) |
---|
| | { |
---|
| | $this->assertLessThanOrEqual( $maxLength, $actual->getValue( 0, 'DATA_PRECISION' ), $errorString ); |
---|
| | } |
---|
| | |
---|
| | $this->assertEquals( $numDecimals, $actual->getValue( 0, 'DATA_SCALE' ), $errorString ); |
---|
| | } |
---|
| | else |
---|
| | { |
---|
| |
---|
| | $actual->getValue( 0, 'CHAR_LENGTH' ), |
---|
| | $this->markAdjustments['incorrectLength'] |
---|
| | ); |
---|
| | |
---|
| | $this->assertGreaterThanOrEqual( $minLength, $actual->getValue( 0, 'CHAR_LENGTH' ), $errorString ); |
---|
| | if ( $maxLength > 0 ) |
---|
| | { |
---|
| | $this->assertLessThanOrEqual( $maxLength, $actual->getValue( 0, 'CHAR_LENGTH' ), $errorString ); |
---|
| | } |
---|
| | if ( $minLength > 0 ) |
---|
| | { |
---|
| | $this->assertGreaterThanOrEqual( $minLength, $actual->getValue( 0, 'CHAR_LENGTH' ), $errorString ); |
---|
| | } |
---|
| | |
---|
| | $this->assertLessThanOrEqual( $maxLength, $actual->getValue( 0, 'CHAR_LENGTH' ), $errorString ); |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | } |
---|
| | |
---|
| | |
---|
| | /** |
---|
| | * Assert that a column allows or disallows nulls. |
---|
| |
---|
|