Change ln(), log(), power(), and sqrt() to emit the correct SQLSTATE
Neil Conway <neilc@samurai.com>
Change ln(), log(), power(), and sqrt() to emit the correct SQLSTATE error codes for certain error conditions, as specified by SQL2003.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/errcodes.sgml | modified | +11 −1 |
| src/backend/utils/adt/float.c | modified | +26 −9 |
| src/backend/utils/adt/numeric.c | modified | +27 −3 |
| src/include/utils/errcodes.h | modified | +4 −2 |