diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index e15a44570b1acdbe252b906e647096c8db1bc81e..a59b59211b2e8ba6118c182d344c75b3c4892d37 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 a394820b7f1e26eb1be7c1293fdcb656b97b87df..7a5c8b51fb7ee91e5a95999398b9c520b81ad078 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 09619bb4827a772f4dcab0ed894dc1754946e3b2..1302ee2661ac887263801046cd9e84d6bdf8c6a2 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 a17669e73ea62beceaa6bb662e818c5d5ce6cd56..5164f7155a126c81a62bbbeda56111f43cf9e014 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 68a0ebf7450e15a568fbf659e076ca42547e6d4a..fda1d9f0e56362476a5cf4509c4010da87686311 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 a5edd6103f1537d59665497bc483fa7b35e86d6b..1ad38e348611f3634de720e7bf92a9785b4ac02f 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 ea64e96beed10cfa1d4e073b9b17e7da0a5e940b..31619de8fd91c8c23d345ebdab175e783b8f6a52 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 084f9fe2a64104319afb5f1124700398d1476383..174dc9cdc0db5d2e2bf7a68110d1ac794732bdfd 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;