PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "mb/pg_wchar.h"
#include "plpy_elog.h"
#include "plpy_util.h"
#include "plpython.h"
Go to the source code of this file.
Functions | |
PyObject * | PLyUnicode_Bytes (PyObject *unicode) |
char * | PLyUnicode_AsString (PyObject *unicode) |
PyObject * | PLyUnicode_FromStringAndSize (const char *s, Py_ssize_t size) |
PyObject * | PLyUnicode_FromString (const char *s) |
char* PLyUnicode_AsString | ( | PyObject * | unicode | ) |
Definition at line 82 of file plpy_util.c.
References PLyUnicode_Bytes(), and pstrdup().
Referenced by get_string_attr(), object_to_string(), PLy_cursor_plan(), PLy_exec_trigger(), PLy_get_sqlerrcode(), PLy_modify_tuple(), PLy_output(), PLy_spi_execute_plan(), PLy_spi_prepare(), and PLy_traceback().
PyObject* PLyUnicode_Bytes | ( | PyObject * | unicode | ) |
Definition at line 20 of file plpy_util.c.
References ERROR, GetDatabaseEncoding(), pfree(), pg_any_to_server(), PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PG_UTF8, and PLy_elog.
Referenced by PLyObject_AsString(), and PLyUnicode_AsString().
PyObject* PLyUnicode_FromString | ( | const char * | s | ) |
Definition at line 117 of file plpy_util.c.
References PLyUnicode_FromStringAndSize().
Referenced by PLy_generate_spi_exceptions(), PLy_quote_ident(), PLy_quote_literal(), PLy_quote_nullable(), PLy_result_colnames(), PLy_trigger_build_args(), PLyUnicode_FromScalar(), and set_string_attr().
PyObject* PLyUnicode_FromStringAndSize | ( | const char * | s, |
Py_ssize_t | size | ||
) |
Definition at line 96 of file plpy_util.c.
References pfree(), pg_server_to_any(), PG_UTF8, and size.
Referenced by PLyUnicode_FromString().