mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
PL/Python: Add result object str handler
This is intended so that say plpy.debug(rv) prints something useful for debugging query execution results. reviewed by Steve Singer
This commit is contained in:
@ -956,6 +956,17 @@ foo = rv[i]["my_column"]
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal><function>__str__</function>()</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The standard <literal>__str__</literal> method is defined so that it
|
||||
is possible for example to debug query execution results
|
||||
using <literal>plpy.debug(rv)</literal>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
|
||||
|
Reference in New Issue
Block a user