PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "mb/pg_wchar.h"
#include "plpy_elog.h"
#include "plpy_util.h"
#include "plpython.h"
#include "utils/memutils.h"
Go to the source code of this file.
Functions | |
PyObject * | PLyUnicode_Bytes (PyObject *unicode) |
char * | PLyUnicode_AsString (PyObject *unicode) |
char* PLyUnicode_AsString | ( | PyObject * | unicode | ) |
Definition at line 89 of file plpy_util.c.
References pfree(), pg_server_to_any(), PG_UTF8, PLyUnicode_Bytes(), PLyUnicode_FromStringAndSize, and pstrdup().
Referenced by PLy_exec_trigger(), PLy_modify_tuple(), and PLy_spi_prepare().
PyObject* PLyUnicode_Bytes | ( | PyObject * | unicode | ) |
Definition at line 21 of file plpy_util.c.
References generate_unaccent_rules::bytes(), 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().