PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
char * | pgtypes_alloc (long size) |
char * | pgtypes_strdup (const char *str) |
int | pgtypes_fmt_replace (union un_fmt_comb replace_val, int replace_type, char **output, int *pstr_len) |
void | PGTYPESchar_free (char *ptr) |
char* pgtypes_alloc | ( | long | size | ) |
Definition at line 10 of file common.c.
Referenced by get_str_from_var(), pgtypes_fmt_replace(), PGTYPESdate_defmt_asc(), PGTYPESdate_fmt_asc(), PGTYPESdate_new(), PGTYPESdecimal_new(), PGTYPESinterval_from_asc(), PGTYPESinterval_new(), PGTYPESnumeric_from_asc(), PGTYPESnumeric_new(), and PGTYPEStimestamp_defmt_scan().
int pgtypes_fmt_replace | ( | union un_fmt_comb | replace_val, |
int | replace_type, | ||
char ** | output, | ||
int * | pstr_len | ||
) |
Definition at line 30 of file common.c.
References un_fmt_comb::char_val, un_fmt_comb::double_val, free, i, INT64_FORMAT, un_fmt_comb::int64_val, output, pgtypes_alloc(), PGTYPES_FMT_NUM_MAX_DIGITS, PGTYPES_TYPE_CHAR, PGTYPES_TYPE_DOUBLE_NF, PGTYPES_TYPE_INT64, PGTYPES_TYPE_NOTHING, PGTYPES_TYPE_STRING_CONSTANT, PGTYPES_TYPE_STRING_MALLOCED, PGTYPES_TYPE_UINT, PGTYPES_TYPE_UINT_2_LS, PGTYPES_TYPE_UINT_2_LZ, PGTYPES_TYPE_UINT_3_LZ, PGTYPES_TYPE_UINT_4_LZ, snprintf, un_fmt_comb::str_val, and un_fmt_comb::uint_val.
Referenced by dttofmtasc_replace().
char* pgtypes_strdup | ( | const char * | str | ) |
Definition at line 20 of file common.c.
References str.
Referenced by pgtypes_defmt_scan(), PGTYPESdate_defmt_asc(), PGTYPESdate_to_asc(), PGTYPESinterval_to_asc(), PGTYPEStimestamp_defmt_asc(), and PGTYPEStimestamp_to_asc().