1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Expose quote_literal_cstr() from core.

This eliminates the need for inefficient implementions of this
functionality in both contrib/dblink and contrib/tablefunc, so remove
them.  The upcoming patch implementing an in-core format() function
will also require this functionality.

In passing, add some regression tests.
This commit is contained in:
Robert Haas
2010-11-20 10:04:48 -05:00
parent e8bf683fbe
commit 4343c0e546
6 changed files with 77 additions and 64 deletions

View File

@ -977,6 +977,7 @@ extern int32 type_maximum_size(Oid type_oid, int32 typemod);
/* quote.c */
extern Datum quote_ident(PG_FUNCTION_ARGS);
extern Datum quote_literal(PG_FUNCTION_ARGS);
extern char *quote_literal_cstr(char *rawstr);
extern Datum quote_nullable(PG_FUNCTION_ARGS);
/* guc.c */