summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2009-08-14 13:12:21 +0000
committerPeter Eisentraut2009-08-14 13:12:21 +0000
commit68096ece36e3300ef22696a94fb0aa8c17a57448 (patch)
treec31a76b557c3838ec639337be708f3c06de2e232
parentb563a8e8aa8ccb0d8710c9246048c5db5e11f5ab (diff)
Domain support in PL/Python
When examining what Python type to convert a PostgreSQL type to on input, look at the base type of the input type, otherwise all domains end up defaulting to string.
-rw-r--r--src/pl/plpython/plpython.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pl/plpython/plpython.c b/src/pl/plpython/plpython.c
index 07da41b01c..cfc22259b8 100644
--- a/src/pl/plpython/plpython.c
+++ b/src/pl/plpython/plpython.c
@@ -1641,7 +1641,7 @@ PLy_input_datum_func2(PLyDatumToOb *arg, Oid typeOid, HeapTuple typeTup)
arg->typbyval = typeStruct->typbyval;
/* Determine which kind of Python object we will convert to */
- switch (typeOid)
+ switch (getBaseType(typeOid))
{
case BOOLOID:
arg->func = PLyBool_FromString;