Skip to content

Commit 9879efd

Browse files
committed
Fix TD number type length
1 parent 2c9ae4c commit 9879efd

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

src/Definition/Teradata.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -341,19 +341,13 @@ public function __construct(string $type, array $options = [])
341341
parent::__construct($type, $options);
342342
}
343343

344-
/**
345-
*
346-
* @param string $type
347-
* @param null $length
348-
* @return string|null
349-
*/
350344
private function consolidateLength(string $type, $length = null): ?string
351345
{
352346
if ($length !== null
353347
&& array_key_exists($type, self::TYPES_WITH_INVALID_DEFAULT_LENGTH)
354348
&& $length === self::TYPES_WITH_INVALID_DEFAULT_LENGTH[$type]
355349
) {
356-
return $this->getDefaultLength();
350+
return null;
357351
}
358352
return $length;
359353
}

0 commit comments

Comments
 (0)