Add ceiling() as an alias for ceil(), and power() as an alias for pow().
Regression tests and documentation have both been updated. SQL2003 requires that both ceiling() and ceil() be present, so I have documented both spellings. SQL2003 doesn't mention pow() as far as I can see, so I decided to replace pow() with power() in the documentation: there is little reason to encourage the continued usage of a function that isn't compliant with the standard, given a standard-compliant alternative. RELEASE NOTES: should state that pow() is considered deprecated (although I don't see the need to ever remove it.)
Showing
- doc/src/sgml/func.sgml 13 additions, 5 deletionsdoc/src/sgml/func.sgml
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 9 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/test/regress/expected/float8-exp-three-digits-win32.out 18 additions, 1 deletionsrc/test/regress/expected/float8-exp-three-digits-win32.out
- src/test/regress/expected/float8-exp-three-digits.out 18 additions, 1 deletionsrc/test/regress/expected/float8-exp-three-digits.out
- src/test/regress/expected/float8-small-is-zero.out 18 additions, 1 deletionsrc/test/regress/expected/float8-small-is-zero.out
- src/test/regress/expected/float8.out 18 additions, 1 deletionsrc/test/regress/expected/float8.out
- src/test/regress/expected/numeric.out 24 additions, 2 deletionssrc/test/regress/expected/numeric.out
- src/test/regress/sql/float8.sql 5 additions, 1 deletionsrc/test/regress/sql/float8.sql
- src/test/regress/sql/numeric.sql 14 additions, 2 deletionssrc/test/regress/sql/numeric.sql
Loading
Please register or sign in to comment