mirror of
https://github.com/postgres/postgres.git
synced 2025-06-01 14:21:49 +03:00
Eliminate a gratuitously different wording of the 'cannot use aggregate function in check constraint' error message.
This commit is contained in:
parent
1d895f426f
commit
e256bafaa2
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.90 2006/04/05 22:11:55 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/commands/typecmds.c,v 1.91 2006/06/21 18:09:53 tgl Exp $
|
||||||
*
|
*
|
||||||
* DESCRIPTION
|
* DESCRIPTION
|
||||||
* The "DefineFoo" routines take the parse tree and pick out the
|
* The "DefineFoo" routines take the parse tree and pick out the
|
||||||
@ -1841,7 +1841,7 @@ domainAddConstraint(Oid domainOid, Oid domainNamespace, Oid baseTypeOid,
|
|||||||
if (pstate->p_hasAggs)
|
if (pstate->p_hasAggs)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_GROUPING_ERROR),
|
(errcode(ERRCODE_GROUPING_ERROR),
|
||||||
errmsg("cannot use aggregate in check constraint")));
|
errmsg("cannot use aggregate function in check constraint")));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert to string form for storage.
|
* Convert to string form for storage.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user