diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index ba785e9a53..d39158ac12 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1199,7 +1199,7 @@ $$ LANGUAGE plpythonu; ad-hoc queries. A PL/Python equivalent of dynamic SQL from would be: -plpy.execute("UPDATE tbl SET %s = %s where key = %s" % ( +plpy.execute("UPDATE tbl SET %s = %s WHERE key = %s" % ( plpy.quote_ident(colname), plpy.quote_nullable(newvalue), plpy.quote_literal(keyvalue)))