Skip to content
Snippets Groups Projects
Commit 36a1ba9d authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Fix documentation reference to "above" example

found by Thom Brown
parent 4dd4bd4d
No related branches found
No related tags found
No related merge requests found
...@@ -400,7 +400,8 @@ $$ LANGUAGE plpythonu; ...@@ -400,7 +400,8 @@ $$ LANGUAGE plpythonu;
If an SQL null value<indexterm><primary>null value</primary><secondary If an SQL null value<indexterm><primary>null value</primary><secondary
sortas="PL/Python">in PL/Python</secondary></indexterm> is passed to a sortas="PL/Python">in PL/Python</secondary></indexterm> is passed to a
function, the argument value will appear as <symbol>None</symbol> in function, the argument value will appear as <symbol>None</symbol> in
Python. The above function definition will return the wrong answer for null Python. For example, the function definition of <function>pymax</function>
shown in <xref linkend="plpython-funcs"> will return the wrong answer for null
inputs. We could add <literal>STRICT</literal> to the function definition inputs. We could add <literal>STRICT</literal> to the function definition
to make <productname>PostgreSQL</productname> do something more reasonable: to make <productname>PostgreSQL</productname> do something more reasonable:
if a null value is passed, the function will not be called at all, if a null value is passed, the function will not be called at all,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment