mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Back out:
> Attached is a patch that addressed all the discussed issues > that did not break backward compatability, including the > ability to output ISO-8601 compliant intervals by setting > datestyle to iso8601basic.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/variable.c,v 1.91 2003/12/20 15:32:54 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/variable.c,v 1.92 2003/12/21 04:34:35 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -82,12 +82,7 @@ assign_datestyle(const char *value, bool doit, bool interactive)
|
||||
|
||||
/* Ugh. Somebody ought to write a table driven version -- mjl */
|
||||
|
||||
if (strcasecmp(tok, "ISO8601BASIC") == 0)
|
||||
{
|
||||
newDateStyle = USE_ISO8601BASIC_DATES;
|
||||
scnt++;
|
||||
}
|
||||
else if (strcasecmp(tok, "ISO") == 0)
|
||||
if (strcasecmp(tok, "ISO") == 0)
|
||||
{
|
||||
newDateStyle = USE_ISO_DATES;
|
||||
scnt++;
|
||||
@ -203,9 +198,6 @@ assign_datestyle(const char *value, bool doit, bool interactive)
|
||||
case USE_ISO_DATES:
|
||||
strcpy(result, "ISO");
|
||||
break;
|
||||
case USE_ISO8601BASIC_DATES:
|
||||
strcpy(result, "ISO8601BASIC");
|
||||
break;
|
||||
case USE_SQL_DATES:
|
||||
strcpy(result, "SQL");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user