mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
This adds unary plus capability. No grammar changes, per Tom's request.
Marko Kreen
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int8.c,v 1.29 2001/03/22 03:59:51 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/int8.c,v 1.30 2001/06/07 00:09:29 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -412,6 +412,14 @@ int8um(PG_FUNCTION_ARGS)
|
||||
PG_RETURN_INT64(-val);
|
||||
}
|
||||
|
||||
Datum
|
||||
int8up(PG_FUNCTION_ARGS)
|
||||
{
|
||||
int64 val = PG_GETARG_INT64(0);
|
||||
|
||||
PG_RETURN_INT64(val);
|
||||
}
|
||||
|
||||
Datum
|
||||
int8pl(PG_FUNCTION_ARGS)
|
||||
{
|
||||
|
Reference in New Issue
Block a user