From cac76582053ef8ea07df65fed0757f352da23705 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sun, 26 Apr 2015 10:33:14 -0400 Subject: Add transforms feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This provides a mechanism for specifying conversions between SQL data types and procedural languages. As examples, there are transforms for hstore and ltree for PL/Perl and PL/Python. reviews by Pavel Stěhule and Andres Freund --- src/pl/plpython/plpython.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pl/plpython/plpython.h') diff --git a/src/pl/plpython/plpython.h b/src/pl/plpython/plpython.h index 69d7e9b229a..ea540af39e3 100644 --- a/src/pl/plpython/plpython.h +++ b/src/pl/plpython/plpython.h @@ -91,6 +91,7 @@ typedef int Py_ssize_t; #define PyString_Check(x) 0 #define PyString_AsString(x) PLyUnicode_AsString(x) #define PyString_FromString(x) PLyUnicode_FromString(x) +#define PyString_FromStringAndSize(x, size) PLyUnicode_FromStringAndSize(x, size) #endif /* -- cgit v1.2.3