Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc74d8a7

Browse files
committed
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 updefaulting to string.
1 parent7902338 commitc74d8a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/pl/plpython/plpython.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**********************************************************************
22
* plpython.c - python as a procedural language for PostgreSQL
33
*
4-
*$PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.124 2009/08/13 20:50:05 petere Exp $
4+
*$PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.125 2009/08/14 13:12:21 petere Exp $
55
*
66
*********************************************************************
77
*/
@@ -1641,7 +1641,7 @@ PLy_input_datum_func2(PLyDatumToOb *arg, Oid typeOid, HeapTuple typeTup)
16411641
arg->typbyval=typeStruct->typbyval;
16421642

16431643
/* Determine which kind of Python object we will convert to */
1644-
switch (typeOid)
1644+
switch (getBaseType(typeOid))
16451645
{
16461646
caseBOOLOID:
16471647
arg->func=PLyBool_FromString;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp