mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
Update C comments to mention SQL:2003 handling of power return values.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.155 2008/04/21 00:26:45 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.156 2008/05/09 15:36:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1331,7 +1331,8 @@ dpow(PG_FUNCTION_ARGS)
|
||||
|
||||
/*
|
||||
* The SQL spec requires that we emit a particular SQLSTATE error code for
|
||||
* certain error conditions.
|
||||
* certain error conditions. Specifically, we don't return a divide-by-zero
|
||||
* error code for 0 ^ -1.
|
||||
*/
|
||||
if ((arg1 == 0 && arg2 < 0) ||
|
||||
(arg1 < 0 && floor(arg2) != arg2))
|
||||
|
Reference in New Issue
Block a user