Skip to content

SQL: IP type reported to have column size of 0 #52762

@bpintea

Description

@bpintea

The IP type is currently reported to have the column size (i.e. older "precision") of 0. This is reported in SYS TYPES.
This value is passed to the client applications and older ones use it as-is to allocate buffers to have the values returned in; which results in them getting just a string null-terminator only for the IP fields (i.e. empty string).

The value should contain the maximum length of an IP address in characters (as the type is backed by a KEYWORD).

(Collaterally, the DataType.size for IP value should be corrected from current 39 to 45.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions