Re: OCTET_LENGTH is wrong - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: OCTET_LENGTH is wrong
Date
Msg-id Pine.LNX.4.30.0111182251580.613-100000@peter.localdomain
Whole thread Raw
In response to Re: OCTET_LENGTH is wrong  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: OCTET_LENGTH is wrong
List pgsql-hackers
Tom Lane writes:

> What
> I am trying to point out is that the spec is so vague that it's not
> clear what the correct answer is.

I guess the authors of SQL92 never imagined someone would question what
"value of S" means.  In SQL99 they included it:

SQL 99 Part 1, 4.4.3.2.
        A value of character type is a string (sequence) of characters        drawn from some character repertoire.

Just to be sure...

SQL 99 Part 1, 3.1 q)
        q) sequence: An ordered collection of objects that are not           necessarily distinct.

I don't have a set theory text available, but I think this should give a
fair indication that the number of bits in the value of S is the sum of
the bits in each individual character (which is in turn vaguely defined
elsewhere in SQL99) -- at least in Euclidean memory architectures.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: "Tille, Andreas"
Date:
Subject: Re: Further open item (Was: Status of 7.2)
Next
From: "Zeugswetter Andreas SB SD"
Date:
Subject: Re: Further open item (Was: Status of 7.2)