PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
Datum | quote_ident (PG_FUNCTION_ARGS) |
static size_t | quote_literal_internal (char *dst, const char *src, size_t len) |
Datum | quote_literal (PG_FUNCTION_ARGS) |
char * | quote_literal_cstr (const char *rawstr) |
Datum | quote_nullable (PG_FUNCTION_ARGS) |
Datum quote_ident | ( | PG_FUNCTION_ARGS | ) |
Definition at line 25 of file quote.c.
References cstring_to_text(), PG_GETARG_TEXT_PP, PG_RETURN_TEXT_P, quote_identifier(), str, and text_to_cstring().
Referenced by quote_ident_cstr().
Datum quote_literal | ( | PG_FUNCTION_ARGS | ) |
Definition at line 78 of file quote.c.
References len, palloc(), PG_GETARG_TEXT_PP, PG_RETURN_TEXT_P, quote_literal_internal(), SET_VARSIZE, VARDATA, VARDATA_ANY, VARHDRSZ, and VARSIZE_ANY_EXHDR.
Referenced by get_publications_str(), and quote_nullable().
char* quote_literal_cstr | ( | const char * | rawstr | ) |
Definition at line 103 of file quote.c.
References len, palloc(), and quote_literal_internal().
Referenced by build_tuplestore_recursively(), fetch_remote_table_info(), get_publications_str(), get_sql_delete(), get_sql_insert(), get_sql_update(), get_tuple_of_interest(), pg_decode_commit_prepared_txn(), pg_decode_prepare_txn(), pg_decode_rollback_prepared_txn(), pg_decode_stream_prepare(), PLy_quote_literal(), PLy_quote_nullable(), text_format_string_conversion(), and validate_remote_info().
|
static |
Definition at line 47 of file quote.c.
References ESCAPE_STRING_SYNTAX, len, and SQL_STR_DOUBLE.
Referenced by quote_literal(), and quote_literal_cstr().
Datum quote_nullable | ( | PG_FUNCTION_ARGS | ) |
Definition at line 125 of file quote.c.
References cstring_to_text(), DirectFunctionCall1, PG_ARGISNULL, PG_GETARG_DATUM, PG_RETURN_DATUM, PG_RETURN_TEXT_P, and quote_literal().