29 PLy_elog(
ERROR,
"could not convert Python Unicode object to bytes");
35 PLy_elog(
ERROR,
"could not extract bytes from encoded string");
#define PLyUnicode_FromStringAndSize
int GetDatabaseEncoding(void)
char * pg_any_to_server(const char *s, int len, int encoding)
char * pg_server_to_any(const char *s, int len, int encoding)
char * pstrdup(const char *in)
void pfree(void *pointer)
char * PLyUnicode_AsString(PyObject *unicode)
PyObject * PLyUnicode_Bytes(PyObject *unicode)
PyObject * PLyUnicode_FromString(const char *s)