Emit a warning when an empty string is input to the oid, float4, and
Neil Conway <neilc@samurai.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/errcodes.sgml | modified | +5 −1 |
| src/backend/utils/adt/float.c | modified | +27 −1 |
| src/backend/utils/adt/oid.c | modified | +16 −4 |
| src/include/utils/errcodes.h | modified | +2 −1 |
| src/test/regress/expected/oid.out | modified | +4 −9 |
| src/test/regress/sql/oid.sql | modified | +0 −2 |