We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6441288 commit 2512817Copy full SHA for 2512817
src/pl/plpython/plpython.c
@@ -1,7 +1,7 @@
1
/**********************************************************************
2
* plpython.c - python as a procedural language for PostgreSQL
3
*
4
- * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.90 2006/11/21 21:51:05 tgl Exp $
+ * $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.91 2007/01/25 04:08:51 momjian Exp $
5
6
*********************************************************************
7
*/
@@ -1580,8 +1580,8 @@ static PyObject *
1580
PLyBool_FromString(const char *src)
1581
{
1582
if (src[0] == 't')
1583
- return PyInt_FromLong(1);
1584
- return PyInt_FromLong(0);
+ Py_RETURN_TRUE;
+ Py_RETURN_FALSE;
1585
}
1586
1587
static PyObject *
0 commit comments