• Peter Eisentraut's avatar
    Add PL/Python functions for quoting strings · 1c51c7d5
    Peter Eisentraut authored
    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
    1c51c7d5
quote.c 2.63 KB