Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
0626a7d1
Commit
0626a7d1
authored
Jan 25, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse out use of Py_RETURN_TRUE in plpython, only supported in Python >=
2.3.
parent
22bd156f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/pl/plpython/plpython.c
src/pl/plpython/plpython.c
+9
-3
No files found.
src/pl/plpython/plpython.c
View file @
0626a7d1
/**********************************************************************
/**********************************************************************
* plpython.c - python as a procedural language for PostgreSQL
* plpython.c - python as a procedural language for PostgreSQL
*
*
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.9
1 2007/01/25 04:08:51
momjian Exp $
* $PostgreSQL: pgsql/src/pl/plpython/plpython.c,v 1.9
2 2007/01/25 14:52:23
momjian Exp $
*
*
*********************************************************************
*********************************************************************
*/
*/
...
@@ -1579,9 +1579,15 @@ PLy_typeinfo_dealloc(PLyTypeInfo * arg)
...
@@ -1579,9 +1579,15 @@ PLy_typeinfo_dealloc(PLyTypeInfo * arg)
static
PyObject
*
static
PyObject
*
PLyBool_FromString
(
const
char
*
src
)
PLyBool_FromString
(
const
char
*
src
)
{
{
/*
* We would like to use Py_RETURN_TRUE and Py_RETURN_FALSE here for
* generating SQL from trigger functions, but those are only
* supported in Python >= 2.3, and we support older
* versions. http://docs.python.org/api/boolObjects.html
*/
if
(
src
[
0
]
==
't'
)
if
(
src
[
0
]
==
't'
)
Py_RETURN_TRUE
;
return
PyInt_FromLong
(
1
)
;
Py_RETURN_FALSE
;
return
PyInt_FromLong
(
0
)
;
}
}
static
PyObject
*
static
PyObject
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment