From bf86bacb2cc5af7dfe84e8d716b3d271956d8b14 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 14 Aug 2005 22:19:50 +0000 Subject: [PATCH] Change standard_compliant_strings to standard_conforming_strings. --- doc/src/sgml/libpq.sgml | 8 ++++---- doc/src/sgml/protocol.sgml | 6 +++--- doc/src/sgml/runtime.sgml | 10 +++++----- doc/src/sgml/syntax.sgml | 4 ++-- src/backend/utils/misc/guc.c | 8 ++++---- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 74219f368b..7f9bc97b0d 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -890,10 +890,10 @@ Parameters reported as of the current release include DateStyle, TimeZone, integer_datetimes, and -standard_compliant_strings. +standard_conforming_strings. (server_encoding, TimeZone, and integer_datetimes were not reported by releases before 8.0; -standard_compliant_strings was not reported by releases +standard_conforming_strings was not reported by releases before 8.1.) Note that server_version, @@ -917,7 +917,7 @@ in a numeric form that is much easier to compare against. -If no value for standard_compliant_strings is reported, +If no value for standard_conforming_strings is reported, applications may assume it is false, that is, backslashes are treated as escapes in string literals. Also, the presence of this parameter may be taken as an indication that the escape string syntax diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 9663c7c08c..07c9c642c7 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1,4 +1,4 @@ - + Frontend/Backend Protocol @@ -1061,10 +1061,10 @@ DateStyle, TimeZone, integer_datetimes, and - standard_compliant_strings. + standard_conforming_strings. (server_encoding, TimeZone, and integer_datetimes were not reported by releases before 8.0; - standard_compliant_strings was not reported by releases + standard_conforming_strings was not reported by releases before 8.1.) Note that server_version, diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 060cd91ea1..efb46060d9 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -4089,7 +4089,7 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir' Escape string syntax (E'...') should be used for escapes, because in future versions of PostgreSQL ordinary strings will have - the standard-compliant behavior of treating backslashes + the standard-conforming behavior of treating backslashes literally. @@ -4303,11 +4303,11 @@ dynamic_library_path = 'C:\tools\postgresql;H:\my_project\lib;$libdir' - - standard_compliant_strings (boolean) + + standard_conforming_strings (boolean) stringsescape - standard_compliant_strings configuration parameter + standard_conforming_strings configuration parameter diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml index 0d3d7f19f1..ae6ae9468d 100644 --- a/doc/src/sgml/syntax.sgml +++ b/doc/src/sgml/syntax.sgml @@ -1,5 +1,5 @@ @@ -274,7 +274,7 @@ UPDATE "my_table" SET "a" = 5; While ordinary strings now support C-style backslash escapes, future versions will generate warnings for such usage and eventually treat backslashes as literal characters to be - standard-compliant. The proper way to specify escape processing is + standard-conforming. The proper way to specify escape processing is to use the escape string syntax to indicate that escape processing is desired. Escape string syntax is specified by writing the letter E (upper or lower case) just before diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index bb0634463e..5176ac05cb 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -10,7 +10,7 @@ * Written by Peter Eisentraut . * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.281 2005/08/11 21:11:47 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.282 2005/08/14 22:19:50 petere Exp $ * *-------------------------------------------------------------------- */ @@ -202,7 +202,7 @@ static int max_index_keys; static int max_identifier_length; static int block_size; static bool integer_datetimes; -static bool standard_compliant_strings; +static bool standard_conforming_strings; /* should be static, but commands/variable.c needs to get at these */ char *role_string; @@ -930,12 +930,12 @@ static struct config_bool ConfigureNamesBool[] = }, { - {"standard_compliant_strings", PGC_INTERNAL, PRESET_OPTIONS, + {"standard_conforming_strings", PGC_INTERNAL, PRESET_OPTIONS, gettext_noop("'...' strings treat backslashes literally."), NULL, GUC_REPORT | GUC_NOT_IN_SAMPLE | GUC_DISALLOW_IN_FILE }, - &standard_compliant_strings, + &standard_conforming_strings, false, NULL, NULL },