From 9a50485fb781d965a4a42d9040166b213c934c81 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 21 Oct 1999 02:33:25 +0000 Subject: [PATCH] Bugfix for CREATE RULE invoked via SPI --- from Hiroshi, 23 Jul 99. Not sure why this didn't get applied before... --- src/backend/rewrite/rewriteDefine.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/rewrite/rewriteDefine.c b/src/backend/rewrite/rewriteDefine.c index 9b594d5b5b..26f91d32e3 100644 --- a/src/backend/rewrite/rewriteDefine.c +++ b/src/backend/rewrite/rewriteDefine.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.37 1999/10/21 01:46:24 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteDefine.c,v 1.38 1999/10/21 02:33:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -118,7 +118,8 @@ InsertRule(char *rulname, appendStringInfo(&rulebuf, "::text, '%s'::bool);", is_instead); - pg_exec_query_acl_override(rulebuf.data); + pg_exec_query_dest(rulebuf.data, None, true); + pfree(rulebuf.data); return LastOidProcessed; -- 2.40.0