From 79abc3b0de371d2f02ee8338bf4a236612ab0d1b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 30 Aug 2004 00:33:52 +0000 Subject: [PATCH] Add explicit note that empty-string array element values now have to be written with quotes. Minor copy-editing too. --- doc/src/sgml/release.sgml | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/doc/src/sgml/release.sgml b/doc/src/sgml/release.sgml index af1db25543e..6752443ae3b 100644 --- a/doc/src/sgml/release.sgml +++ b/doc/src/sgml/release.sgml @@ -1,5 +1,5 @@ @@ -327,11 +327,13 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.292 2004/08/27 02:09:18 momjian - Syntax checking of array input processing has been tighened up + Syntax checking of array input values has been tightened up considerably. Junk that was previously allowed in odd places with - odd results now causes an ERROR. Also changed behavior with respect - to whitespace surrounding array elements; trailing whitespace is now - ignored as well as leading whitespace (which has always been ignored). + odd results now causes an ERROR. Empty-string element values must + now be written as "", rather than writing nothing. + Also changed behavior with respect to whitespace surrounding array + elements: trailing whitespace is now ignored, for symmetry with leading + whitespace (which has always been ignored). @@ -1186,7 +1188,7 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.292 2004/08/27 02:09:18 momjian - Reject non-rectangular array literals as erroneous (Joe) + Reject non-rectangular array values as erroneous (Joe) Formerly, array_in would silently build a @@ -1196,11 +1198,25 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.292 2004/08/27 02:09:18 momjian - Syntax checking of array input processing considerably tighened up (Joe) + Syntax checking of array input values considerably tightened up (Joe) Junk that was previously allowed in odd places with odd results now - causes an ERROR. + causes an ERROR: for example, non-whitespace after the closing + right brace. + + + + + + Empty-string array element values must now be written as + "", rather than writing nothing (Joe) + + + Formerly, both ways of writing an empty-string element value were + allowed, but now a quoted empty string is required. The case where + nothing at all appears will probably be taken over to mean a NULL + element value in some future release. @@ -1210,14 +1226,14 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.292 2004/08/27 02:09:18 momjian Formerly leading whitespace was ignored, but trailing whitespace - between an element and the delimiter or right brace was significant. - Now trailing whitespace is also ignored. + between an element value and the delimiter or right brace was + significant. Now trailing whitespace is also ignored. - Emit array literals with explicit array bounds when lower bound is not one + Emit array values with explicit array bounds when lower bound is not one (Joe) -- 2.39.5