diff options
author | Neil Conway | 2004-03-04 21:47:18 +0000 |
---|---|---|
committer | Neil Conway | 2004-03-04 21:47:18 +0000 |
commit | 2146bfc869bfd4967b0bbf260f386344f02506b9 (patch) | |
tree | 9d1f0efd11e8cc894ab77df44344ba344ab17a4a /src/include/utils/errcodes.h | |
parent | 0b1f7cccd72047be738f97d2ed3d00ae93743c74 (diff) |
Emit a warning when an empty string is input to the oid, float4, and
float8 types. This begins the deprecation of this feature: in 7.6,
this input will be rejected.
Also added a new error code for warnings about deprecated features,
and updated the regression tests.
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 2c9eba99987..c6f4e7bb971 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.7 2003/11/29 22:41:15 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/utils/errcodes.h,v 1.8 2004/03/04 21:47:18 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -44,6 +44,7 @@ #define ERRCODE_WARNING_IMPLICIT_ZERO_BIT_PADDING MAKE_SQLSTATE('0','1', '0','0','8') #define ERRCODE_WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION MAKE_SQLSTATE('0','1', '0','0','3') #define ERRCODE_WARNING_STRING_DATA_RIGHT_TRUNCATION MAKE_SQLSTATE('0','1', '0','0','4') +#define ERRCODE_WARNING_DEPRECATED_FEATURE MAKE_SQLSTATE('0','1', 'P','0','1') /* Class 02 - No Data --- this is also a warning class per SQL99 */ /* (do not use this class for failure conditions!) */ |