Add utility functions to PLPerl:
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 20 Jan 2010 01:08:21 +0000 (01:08 +0000)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 20 Jan 2010 01:08:21 +0000 (01:08 +0000)
commit09f45a82ea5690d014569d4339c72cf7c602eb60
tree3054b5fac8f4d3ba37c751408b4be0f37774ec50
parent37de1fa7a5a4d1c1d9e83055389fc6e049f1dca8
Add utility functions to PLPerl:
    quote_literal, quote_nullable, quote_ident,
    encode_bytea, decode_bytea, looks_like_number,
    encode_array_literal, encode_array_constructor.
Split SPI.xs into two - SPI.xs now contains only SPI functions. Remainder
are in new Util.xs.
Some more code and documentation cleanup along the way, as well as
adding some CVS markers to files missing them.

Original patch from Tim Bunce, with a little editing from me.
14 files changed:
doc/src/sgml/plperl.sgml
src/pl/plperl/GNUmakefile
src/pl/plperl/SPI.xs
src/pl/plperl/Util.xs [new file with mode: 0644]
src/pl/plperl/expected/plperl_elog.out
src/pl/plperl/expected/plperl_util.out [new file with mode: 0644]
src/pl/plperl/plc_perlboot.pl
src/pl/plperl/plc_safe_bad.pl
src/pl/plperl/plc_safe_ok.pl
src/pl/plperl/plperl.c
src/pl/plperl/plperl.h
src/pl/plperl/spi_internal.c [deleted file]
src/pl/plperl/sql/plperl_util.sql [new file with mode: 0644]
src/pl/plperl/text2macro.pl