• Tom Lane's avatar
    While perusing SQL92 I realized that we are delivering the wrong SQLSTATE · d5299891
    Tom Lane authored
    error code for string-too-long errors.  It should be STRING_DATA_RIGHT_TRUNCATION
    not STRING_DATA_LENGTH_MISMATCH.  The latter probably should only be
    applied to cases where a string must be exactly so many bits --- there are
    no cases at all where it applies to character strings, only bit strings.
    d5299891
varchar.c 16.1 KB