From 1c51c7d5ffd407426f314b2cd317ef77f14efb1f Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 22 Feb 2011 23:33:44 +0200 Subject: Add PL/Python functions for quoting strings Add functions plpy.quote_ident, plpy.quote_literal, plpy.quote_nullable, which wrap the equivalent SQL functions. To be able to propagate char * constness properly, make the argument of quote_literal_cstr() const char *. This also makes it more consistent with quote_identifier(). Jan UrbaƄski, reviewed by Hitoshi Harada, some refinements by Peter Eisentraut --- src/pl/plpython/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'src/pl/plpython/Makefile') diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 3a2411bea18..17fa86880ed 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -79,6 +79,7 @@ REGRESS = \ plpython_types \ plpython_error \ plpython_unicode \ + plpython_quote \ plpython_drop # where to find psql for running the tests PSQLDIR = $(bindir) -- cgit v1.2.3