mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Add hint for to_char(interval) invalid format specifications.
This commit is contained in:
@ -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)
|
||||
|
||||
/*****************************************************************************
|
||||
|
Reference in New Issue
Block a user