final class Modifiers
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.

Applies type modifiers to a catalog type.

Rule: PG-TYPE-MODIFIER-001. Scope: the modifier lists of Numeric, Bit, Character, ConstDatetime, ConstInterval and GenericType. Facts: no modifier gives the catalog type; numeric takes a precision of 1 to 1000 and an optional scale of -1000 to 1000; character and character varying take a length of 1 to 10485760; bit and bit varying a length of 1 to 83886080; the time, timestamp and interval types a precision that is not negative and is reduced to 6 above 6. Diagnostics: a modifier that is not an integer constant, a wrong count, a value out of range, and modifiers on any other type are ModifierProblem. Minimum precision: Known for every list of integer constants in range. Source: https://www.postgresql.org/docs/17/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL, https://www.postgresql.org/docs/17/datatype-character.html, https://www.postgresql.org/docs/17/datatype-bit.html, https://www.postgresql.org/docs/17/datatype-datetime.html. Termination: one pass over the modifiers. Status: Implemented.

Methods§

Private surface 2§

Implementation details, listed for orientation only.

private const LENGTHS = ['bpchar' => 10485760, 'varchar' => 10485760, 'bit' => 83886080, 'varbit' => 83…
private const PRECISIONS = ['time', 'timetz', 'timestamp', 'timestamptz', 'interval']

Test cases 5§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 5

Relations§

Instantiated in 5
Method calls 5