diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index e15a44570b..a59b59211b 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1,5 +1,5 @@ @@ -6501,9 +6501,9 @@ SET search_path TO schema , schema, .. SELECT current_setting('datestyle'); - current_setting ---------------------------------------- - ISO with US (NonEuropean) conventions + current_setting +----------------- + ISO, US (1 row) diff --git a/doc/src/sgml/ref/set.sgml b/doc/src/sgml/ref/set.sgml index a394820b7f..7a5c8b51fb 100644 --- a/doc/src/sgml/ref/set.sgml +++ b/doc/src/sgml/ref/set.sgml @@ -1,5 +1,5 @@ @@ -154,7 +154,7 @@ SELECT setseed(value); for SET timezone TO value. The syntax SET TIME ZONE allows special syntax for the time zone specification. Here are examples of valid - values: + values (but note some are accepted only on some platforms): diff --git a/doc/src/sgml/ref/show.sgml b/doc/src/sgml/ref/show.sgml index 09619bb482..1302ee2661 100644 --- a/doc/src/sgml/ref/show.sgml +++ b/doc/src/sgml/ref/show.sgml @@ -1,5 +1,5 @@ @@ -156,9 +156,9 @@ SHOW ALL SHOW DateStyle; - DateStyle ---------------------------------------- - ISO with US (NonEuropean) conventions + DateStyle +----------- + ISO, US (1 row) diff --git a/doc/src/sgml/release.sgml b/doc/src/sgml/release.sgml index a17669e73e..5164f7155a 100644 --- a/doc/src/sgml/release.sgml +++ b/doc/src/sgml/release.sgml @@ -1,5 +1,5 @@ @@ -24,6 +24,7 @@ CDATA means the content is "SGML-free", so you can write without worries about funny characters. --> . * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.136 2003/07/09 08:51:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.137 2003/07/15 19:19:56 tgl Exp $ * *-------------------------------------------------------------------- */ @@ -1265,7 +1265,7 @@ static struct config_string ConfigureNamesString[] = GUC_LIST_INPUT | GUC_REPORT }, &datestyle_string, - "ISO, US", assign_datestyle, show_datestyle + "ISO, US", assign_datestyle, NULL }, { diff --git a/src/include/commands/variable.h b/src/include/commands/variable.h index 68a0ebf745..fda1d9f0e5 100644 --- a/src/include/commands/variable.h +++ b/src/include/commands/variable.h @@ -2,7 +2,7 @@ * variable.h * Routines for handling specialized SET variables. * - * $Id: variable.h,v 1.20 2003/04/25 19:45:09 tgl Exp $ + * $Id: variable.h,v 1.21 2003/07/15 19:19:56 tgl Exp $ * */ #ifndef VARIABLE_H @@ -10,7 +10,6 @@ extern const char *assign_datestyle(const char *value, bool doit, bool interactive); -extern const char *show_datestyle(void); extern const char *assign_timezone(const char *value, bool doit, bool interactive); extern const char *show_timezone(void); diff --git a/src/test/regress/expected/horology-no-DST-before-1970.out b/src/test/regress/expected/horology-no-DST-before-1970.out index a5edd6103f..1ad38e3486 100644 --- a/src/test/regress/expected/horology-no-DST-before-1970.out +++ b/src/test/regress/expected/horology-no-DST-before-1970.out @@ -2385,9 +2385,9 @@ DROP TABLE TEMP_TIMESTAMP; -- SET DateStyle TO 'US,Postgres'; SHOW DateStyle; - DateStyle --------------------------------------------- - Postgres with US (NonEuropean) conventions + DateStyle +-------------- + Postgres, US (1 row) SELECT '' AS "64", d1 AS us_postgres FROM TIMESTAMP_TBL; @@ -2555,9 +2555,9 @@ SELECT '' AS seven, f1 AS us_iso FROM ABSTIME_TBL; SET DateStyle TO 'US,SQL'; SHOW DateStyle; - DateStyle ---------------------------------------- - SQL with US (NonEuropean) conventions + DateStyle +----------- + SQL, US (1 row) SELECT '' AS "64", d1 AS us_sql FROM TIMESTAMP_TBL; @@ -2643,9 +2643,9 @@ SELECT '' AS seven, f1 AS us_sql FROM ABSTIME_TBL; SET DateStyle TO 'European,Postgres'; SHOW DateStyle; - DateStyle ------------------------------------- - Postgres with European conventions + DateStyle +-------------------- + Postgres, European (1 row) INSERT INTO TIMESTAMP_TBL VALUES('13/06/1957'); @@ -2739,9 +2739,9 @@ SELECT '' AS seven, f1 AS european_postgres FROM ABSTIME_TBL; SET DateStyle TO 'European,ISO'; SHOW DateStyle; - DateStyle -------------------------------- - ISO with European conventions + DateStyle +--------------- + ISO, European (1 row) SELECT '' AS "65", d1 AS european_iso FROM TIMESTAMP_TBL; @@ -2828,9 +2828,9 @@ SELECT '' AS seven, f1 AS european_iso FROM ABSTIME_TBL; SET DateStyle TO 'European,SQL'; SHOW DateStyle; - DateStyle -------------------------------- - SQL with European conventions + DateStyle +--------------- + SQL, European (1 row) SELECT '' AS "65", d1 AS european_sql FROM TIMESTAMP_TBL; diff --git a/src/test/regress/expected/horology-solaris-1947.out b/src/test/regress/expected/horology-solaris-1947.out index ea64e96bee..31619de8fd 100644 --- a/src/test/regress/expected/horology-solaris-1947.out +++ b/src/test/regress/expected/horology-solaris-1947.out @@ -2385,9 +2385,9 @@ DROP TABLE TEMP_TIMESTAMP; -- SET DateStyle TO 'US,Postgres'; SHOW DateStyle; - DateStyle --------------------------------------------- - Postgres with US (NonEuropean) conventions + DateStyle +-------------- + Postgres, US (1 row) SELECT '' AS "64", d1 AS us_postgres FROM TIMESTAMP_TBL; @@ -2555,9 +2555,9 @@ SELECT '' AS seven, f1 AS us_iso FROM ABSTIME_TBL; SET DateStyle TO 'US,SQL'; SHOW DateStyle; - DateStyle ---------------------------------------- - SQL with US (NonEuropean) conventions + DateStyle +----------- + SQL, US (1 row) SELECT '' AS "64", d1 AS us_sql FROM TIMESTAMP_TBL; @@ -2643,9 +2643,9 @@ SELECT '' AS seven, f1 AS us_sql FROM ABSTIME_TBL; SET DateStyle TO 'European,Postgres'; SHOW DateStyle; - DateStyle ------------------------------------- - Postgres with European conventions + DateStyle +-------------------- + Postgres, European (1 row) INSERT INTO TIMESTAMP_TBL VALUES('13/06/1957'); @@ -2739,9 +2739,9 @@ SELECT '' AS seven, f1 AS european_postgres FROM ABSTIME_TBL; SET DateStyle TO 'European,ISO'; SHOW DateStyle; - DateStyle -------------------------------- - ISO with European conventions + DateStyle +--------------- + ISO, European (1 row) SELECT '' AS "65", d1 AS european_iso FROM TIMESTAMP_TBL; @@ -2828,9 +2828,9 @@ SELECT '' AS seven, f1 AS european_iso FROM ABSTIME_TBL; SET DateStyle TO 'European,SQL'; SHOW DateStyle; - DateStyle -------------------------------- - SQL with European conventions + DateStyle +--------------- + SQL, European (1 row) SELECT '' AS "65", d1 AS european_sql FROM TIMESTAMP_TBL; diff --git a/src/test/regress/expected/horology.out b/src/test/regress/expected/horology.out index 084f9fe2a6..174dc9cdc0 100644 --- a/src/test/regress/expected/horology.out +++ b/src/test/regress/expected/horology.out @@ -2385,9 +2385,9 @@ DROP TABLE TEMP_TIMESTAMP; -- SET DateStyle TO 'US,Postgres'; SHOW DateStyle; - DateStyle --------------------------------------------- - Postgres with US (NonEuropean) conventions + DateStyle +-------------- + Postgres, US (1 row) SELECT '' AS "64", d1 AS us_postgres FROM TIMESTAMP_TBL; @@ -2555,9 +2555,9 @@ SELECT '' AS seven, f1 AS us_iso FROM ABSTIME_TBL; SET DateStyle TO 'US,SQL'; SHOW DateStyle; - DateStyle ---------------------------------------- - SQL with US (NonEuropean) conventions + DateStyle +----------- + SQL, US (1 row) SELECT '' AS "64", d1 AS us_sql FROM TIMESTAMP_TBL; @@ -2643,9 +2643,9 @@ SELECT '' AS seven, f1 AS us_sql FROM ABSTIME_TBL; SET DateStyle TO 'European,Postgres'; SHOW DateStyle; - DateStyle ------------------------------------- - Postgres with European conventions + DateStyle +-------------------- + Postgres, European (1 row) INSERT INTO TIMESTAMP_TBL VALUES('13/06/1957'); @@ -2739,9 +2739,9 @@ SELECT '' AS seven, f1 AS european_postgres FROM ABSTIME_TBL; SET DateStyle TO 'European,ISO'; SHOW DateStyle; - DateStyle -------------------------------- - ISO with European conventions + DateStyle +--------------- + ISO, European (1 row) SELECT '' AS "65", d1 AS european_iso FROM TIMESTAMP_TBL; @@ -2828,9 +2828,9 @@ SELECT '' AS seven, f1 AS european_iso FROM ABSTIME_TBL; SET DateStyle TO 'European,SQL'; SHOW DateStyle; - DateStyle -------------------------------- - SQL with European conventions + DateStyle +--------------- + SQL, European (1 row) SELECT '' AS "65", d1 AS european_sql FROM TIMESTAMP_TBL;