Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita40a546

Browse files
committed
RelationBuildRuleLock(): char* --> Datum for ruleaction and
rule_evqual_string.
1 parentb6bd3da commita40a546

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

‎src/backend/utils/cache/relcache.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.23 1997/09/08 21:48:55 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.24 1997/09/12 06:57:04 vadim Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -740,8 +740,8 @@ RelationBuildRuleLock(Relation relation)
740740
(Buffer*)NULL))!=NULL)
741741
{
742742
boolisnull;
743-
char*ruleaction=NULL;
744-
char*rule_evqual_string;
743+
Datumruleaction;
744+
Datumrule_evqual_string;
745745
RewriteRule*rule;
746746

747747
rule= (RewriteRule*)palloc(sizeof(RewriteRule));
@@ -770,11 +770,11 @@ RelationBuildRuleLock(Relation relation)
770770
Anum_pg_rewrite_ev_qual,pg_rewrite_tupdesc,
771771
&isnull);
772772

773-
ruleaction=textout((structvarlena*)ruleaction);
774-
rule_evqual_string=textout((structvarlena*)rule_evqual_string);
773+
ruleaction=PointerGetDatum (textout((structvarlena*)DatumGetPointer (ruleaction)));
774+
rule_evqual_string=PointerGetDatum (textout((structvarlena*)DatumGetPointer (rule_evqual_string)));
775775

776-
rule->actions= (List*)stringToNode(ruleaction);
777-
rule->qual= (Node*)stringToNode(rule_evqual_string);
776+
rule->actions= (List*)stringToNode(DatumGetPointer (ruleaction));
777+
rule->qual= (Node*)stringToNode(DatumGetPointer (rule_evqual_string));
778778

779779
rules[numlocks++]=rule;
780780
if (numlocks==maxlocks)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp