]> granicus.if.org Git - postgresql/commit
PL/Python: Fix type mixup
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 14 Jun 2013 01:42:42 +0000 (21:42 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 14 Jun 2013 01:42:42 +0000 (21:42 -0400)
commitfa2fc066f34f1b631b5f92f11e7cda9f60a25330
tree681550fbbdd93cbb00ccdf2efa07e178a565bc04
parent629b3e96dd64fa081d8b4610c5a723ef68af09d7
PL/Python: Fix type mixup

Memory was allocated based on the sizeof a type that was not the type of
the pointer that the result was being assigned to.  The types happen to
be of the same size, but it's still wrong.
src/pl/plpython/plpy_typeio.c