mirror of
https://github.com/postgres/postgres.git
synced 2026-06-10 17:20:31 -04:00
Allow 'PostgreSQL' as a date/time formatting style. Formerly, recognized
'Postgres' only, but now accepts both.
This commit is contained in:
parent
2475e87481
commit
d90b5d06ba
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.55 2001/10/25 05:49:26 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/variable.c,v 1.56 2001/11/21 05:55:18 thomas Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
|
|
@ -213,7 +213,7 @@ parse_datestyle_internal(char *value)
|
|||
DateStyle = USE_SQL_DATES;
|
||||
dcnt++;
|
||||
}
|
||||
else if (!strcasecmp(tok, "POSTGRES"))
|
||||
else if (!strncasecmp(tok, "POSTGRESQL", 8))
|
||||
{
|
||||
DateStyle = USE_POSTGRES_DATES;
|
||||
dcnt++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue