mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-28 12:11:50 +02:00
Add hint for to_char(interval) invalid format specifications.
This commit is contained in:
parent
a11fe54507
commit
7be1b3ba74
@ -1,7 +1,7 @@
|
||||
/* -----------------------------------------------------------------------
|
||||
* formatting.c
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.98 2005/08/18 04:37:08 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/formatting.c,v 1.99 2005/08/18 13:43:08 momjian Exp $
|
||||
*
|
||||
*
|
||||
* Portions Copyright (c) 1999-2005, PostgreSQL Global Development Group
|
||||
@ -439,7 +439,8 @@ typedef struct TmToChar
|
||||
if (is_interval) \
|
||||
ereport(ERROR, \
|
||||
(errcode(ERRCODE_INVALID_DATETIME_FORMAT), \
|
||||
errmsg("invalid format specification for an interval value"))); \
|
||||
errmsg("invalid format specification for an interval value"), \
|
||||
errhint("Intervals are not tied to specific calendar dates."))); \
|
||||
} while(0)
|
||||
|
||||
/*****************************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user