mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Allow 'PostgreSQL' as a date/time formatting style. Formerly, recognized
'Postgres' only, but now accepts both.
This commit is contained in:
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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;
|
DateStyle = USE_SQL_DATES;
|
||||||
dcnt++;
|
dcnt++;
|
||||||
}
|
}
|
||||||
else if (!strcasecmp(tok, "POSTGRES"))
|
else if (!strncasecmp(tok, "POSTGRESQL", 8))
|
||||||
{
|
{
|
||||||
DateStyle = USE_POSTGRES_DATES;
|
DateStyle = USE_POSTGRES_DATES;
|
||||||
dcnt++;
|
dcnt++;
|
||||||
|
Reference in New Issue
Block a user