diff options
| author | Neil Conway <neilc@samurai.com> | 2004-05-14 21:42:30 +0000 |
|---|---|---|
| committer | Neil Conway <neilc@samurai.com> | 2004-05-14 21:42:30 +0000 |
| commit | 0079547bcbedff2a653204571c3cda22c35907d4 (patch) | |
| tree | a39f767c36a3299c57c6a2638b419c15c42b12dd /src/include/utils/errcodes.h | |
| parent | 19a495caaa8a0b9b5a1ee9b1b487697cce7e99db (diff) | |
Implement the width_bucket() function, per SQL2003. This commit only adds
a variant of the function for the 'numeric' datatype; it would be possible
to add additional variants for other datatypes, but I haven't done so yet.
This commit includes regression tests and minimal documentation; if we
want developers to actually use this function in applications, we'll
probably need to document what it does more fully.
Diffstat (limited to 'src/include/utils/errcodes.h')
| -rw-r--r-- | src/include/utils/errcodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/errcodes.h b/src/include/utils/errcodes.h index 64fa7d27187..ed1b4e413d8 100644 --- a/src/include/utils/errcodes.h +++ b/src/include/utils/errcodes.h @@ -11,7 +11,7 @@ * * Copyright (c) 2003, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/utils/errcodes.h,v 1.9 2004/05/14 18:04:02 neilc Exp $ + * $PostgreSQL: pgsql/src/include/utils/errcodes.h,v 1.10 2004/05/14 21:42:30 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -116,6 +116,7 @@ #define ERRCODE_ESCAPE_CHARACTER_CONFLICT MAKE_SQLSTATE('2','2', '0','0','B') #define ERRCODE_INDICATOR_OVERFLOW MAKE_SQLSTATE('2','2', '0','2','2') #define ERRCODE_INTERVAL_FIELD_OVERFLOW MAKE_SQLSTATE('2','2', '0','1','5') +#define ERRCODE_INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION MAKE_SQLSTATE('2','2', '0', '1', 'G') #define ERRCODE_INVALID_CHARACTER_VALUE_FOR_CAST MAKE_SQLSTATE('2','2', '0','1','8') #define ERRCODE_INVALID_DATETIME_FORMAT MAKE_SQLSTATE('2','2', '0','0','7') #define ERRCODE_INVALID_ESCAPE_CHARACTER MAKE_SQLSTATE('2','2', '0','1','9') |
