mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Re-add dblink_current_query() for backward compatibility.
This commit is contained in:
parent
ceb5db69d4
commit
67fe107554
@ -1,4 +1,4 @@
|
||||
/* $PostgreSQL: pgsql/contrib/dblink/dblink.sql.in,v 1.15 2008/04/04 16:57:21 momjian Exp $ */
|
||||
/* $PostgreSQL: pgsql/contrib/dblink/dblink.sql.in,v 1.16 2008/04/05 02:26:14 momjian Exp $ */
|
||||
|
||||
-- Adjust this setting to control where the objects get created.
|
||||
SET search_path = public;
|
||||
@ -163,6 +163,11 @@ RETURNS text
|
||||
AS 'MODULE_PATHNAME','dblink_build_sql_update'
|
||||
LANGUAGE C STRICT;
|
||||
|
||||
CREATE OR REPLACE FUNCTION dblink_current_query ()
|
||||
RETURNS text
|
||||
AS 'SELECT current_query()'
|
||||
LANGUAGE SQL;
|
||||
|
||||
CREATE OR REPLACE FUNCTION dblink_send_query(text, text)
|
||||
RETURNS int4
|
||||
AS 'MODULE_PATHNAME', 'dblink_send_query'
|
||||
|
@ -1,8 +1,10 @@
|
||||
/* $PostgreSQL: pgsql/contrib/dblink/uninstall_dblink.sql,v 1.6 2008/04/04 16:57:21 momjian Exp $ */
|
||||
/* $PostgreSQL: pgsql/contrib/dblink/uninstall_dblink.sql,v 1.7 2008/04/05 02:26:14 momjian Exp $ */
|
||||
|
||||
-- Adjust this setting to control where the objects get dropped.
|
||||
SET search_path = public;
|
||||
|
||||
DROP FUNCTION dblink_current_query ();
|
||||
|
||||
DROP FUNCTION dblink_build_sql_update (text, int2vector, int4, _text, _text);
|
||||
|
||||
DROP FUNCTION dblink_build_sql_delete (text, int2vector, int4, _text);
|
||||
|
Loading…
Reference in New Issue
Block a user