PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <limits.h>
#include <ctype.h>
#include <math.h>
#include "common/int.h"
#include "libpq/pqformat.h"
#include "utils/builtins.h"
#include "utils/cash.h"
#include "utils/numeric.h"
#include "utils/pg_locale.h"
Go to the source code of this file.
Datum cash_cmp | ( | PG_FUNCTION_ARGS | ) |
Datum cash_div_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 643 of file cash.c.
References ereport, errcode(), errmsg(), ERROR, PG_GETARG_CASH, and PG_RETURN_FLOAT8.
Datum cash_div_flt4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 744 of file cash.c.
References ereport, errcode(), errmsg(), ERROR, PG_GETARG_CASH, PG_GETARG_FLOAT4, and PG_RETURN_CASH.
Datum cash_div_flt8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 693 of file cash.c.
References ereport, errcode(), errmsg(), ERROR, PG_GETARG_CASH, PG_GETARG_FLOAT8, and PG_RETURN_CASH.
Datum cash_div_int2 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 895 of file cash.c.
References ereport, errcode(), errmsg(), ERROR, PG_GETARG_CASH, PG_GETARG_INT16, and PG_RETURN_CASH.
Datum cash_div_int4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 845 of file cash.c.
References ereport, errcode(), errmsg(), ERROR, i, PG_GETARG_CASH, PG_GETARG_INT32, and PG_RETURN_CASH.
Datum cash_div_int8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 793 of file cash.c.
References ereport, errcode(), errmsg(), ERROR, i, PG_GETARG_CASH, PG_GETARG_INT64, and PG_RETURN_CASH.
Datum cash_eq | ( | PG_FUNCTION_ARGS | ) |
Datum cash_ge | ( | PG_FUNCTION_ARGS | ) |
Datum cash_gt | ( | PG_FUNCTION_ARGS | ) |
Datum cash_in | ( | PG_FUNCTION_ARGS | ) |
Definition at line 96 of file cash.c.
References ereturn, errcode(), errmsg(), INT64_FORMAT, PG_GETARG_CSTRING, PG_INT64_MIN, pg_mul_s64_overflow(), PG_RETURN_CASH, pg_sub_s64_overflow(), PGLC_localeconv(), printf, generate_unaccent_rules::str, and value.
Datum cash_le | ( | PG_FUNCTION_ARGS | ) |
Datum cash_lt | ( | PG_FUNCTION_ARGS | ) |
Datum cash_mi | ( | PG_FUNCTION_ARGS | ) |
Datum cash_mul_flt4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 713 of file cash.c.
References PG_GETARG_CASH, PG_GETARG_FLOAT4, and PG_RETURN_CASH.
Datum cash_mul_flt8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 663 of file cash.c.
References PG_GETARG_CASH, PG_GETARG_FLOAT8, and PG_RETURN_CASH.
Datum cash_mul_int2 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 866 of file cash.c.
References PG_GETARG_CASH, PG_GETARG_INT16, and PG_RETURN_CASH.
Datum cash_mul_int4 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 814 of file cash.c.
References i, PG_GETARG_CASH, PG_GETARG_INT32, and PG_RETURN_CASH.
Datum cash_mul_int8 | ( | PG_FUNCTION_ARGS | ) |
Definition at line 764 of file cash.c.
References i, PG_GETARG_CASH, PG_GETARG_INT64, and PG_RETURN_CASH.
Datum cash_ne | ( | PG_FUNCTION_ARGS | ) |
Datum cash_numeric | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1032 of file cash.c.
References DirectFunctionCall2, i, Int32GetDatum(), int64_to_numeric(), numeric_div(), numeric_round(), numeric_scale(), NumericGetDatum(), PG_GETARG_CASH, PG_RETURN_DATUM, PGLC_localeconv(), and scale.
Datum cash_out | ( | PG_FUNCTION_ARGS | ) |
Definition at line 310 of file cash.c.
References buf, if(), PG_GETARG_CASH, PG_RETURN_CSTRING, PGLC_localeconv(), psprintf(), and value.
Datum cash_pl | ( | PG_FUNCTION_ARGS | ) |
Datum cash_recv | ( | PG_FUNCTION_ARGS | ) |
Definition at line 513 of file cash.c.
References buf, PG_GETARG_POINTER, PG_RETURN_CASH, and pq_getmsgint64().
Datum cash_send | ( | PG_FUNCTION_ARGS | ) |
Definition at line 524 of file cash.c.
References buf, PG_GETARG_CASH, PG_RETURN_BYTEA_P, pq_begintypsend(), pq_endtypsend(), and pq_sendint64().
Datum cash_words | ( | PG_FUNCTION_ARGS | ) |
Definition at line 945 of file cash.c.
References buf, cstring_to_text(), num_word(), PG_GETARG_CASH, PG_RETURN_TEXT_P, pg_toupper(), val, and value.
Datum cashlarger | ( | PG_FUNCTION_ARGS | ) |
Datum cashsmaller | ( | PG_FUNCTION_ARGS | ) |
Datum flt4_mul_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 728 of file cash.c.
References PG_GETARG_CASH, PG_GETARG_FLOAT4, and PG_RETURN_CASH.
Datum flt8_mul_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 678 of file cash.c.
References PG_GETARG_CASH, PG_GETARG_FLOAT8, and PG_RETURN_CASH.
Datum int2_mul_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 880 of file cash.c.
References PG_GETARG_CASH, PG_GETARG_INT16, and PG_RETURN_CASH.
Datum int4_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1122 of file cash.c.
References DatumGetInt64(), DirectFunctionCall2, i, Int64GetDatum(), int8mul(), PG_GETARG_INT32, PG_RETURN_CASH, PGLC_localeconv(), and scale.
Datum int4_mul_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 829 of file cash.c.
References i, PG_GETARG_CASH, PG_GETARG_INT32, and PG_RETURN_CASH.
Datum int8_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1152 of file cash.c.
References DatumGetInt64(), DirectFunctionCall2, i, Int64GetDatum(), int8mul(), PG_GETARG_INT64, PG_RETURN_CASH, PGLC_localeconv(), and scale.
Datum int8_mul_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 779 of file cash.c.
References i, PG_GETARG_CASH, PG_GETARG_INT64, and PG_RETURN_CASH.
|
static |
Datum numeric_cash | ( | PG_FUNCTION_ARGS | ) |
Definition at line 1088 of file cash.c.
References DatumGetInt64(), DirectFunctionCall1, DirectFunctionCall2, i, int64_to_numeric(), numeric_int8(), numeric_mul(), numeric_scale(), NumericGetDatum(), PG_GETARG_DATUM, PG_RETURN_CASH, PGLC_localeconv(), and scale.