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

Commit27ee6ed

Browse files
committed
Fix two issues with custom_query_jumble in gen_node_support.pl
A node field marked with custom_query_jumble and query_jumble_ignorewould generate some code of a custom routine. The script is changed soas custom_query_jumble behaves like the other options in this case,query_jumble_ignore taking priority, with no code generated.A comment related to the code generated for node types was misplaced.Thinkos introduced in5ac462e.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/1324036.1742945060@sss.pgh.pa.us
1 parentcb36f8e commit27ee6ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/nodes/gen_node_support.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1309,16 +1309,16 @@ sub elem
13091309
}
13101310
}
13111311

1312-
# node type
13131312
if ($query_jumble_custom)
13141313
{
13151314
# Custom function that applies to one field of a node.
1316-
print$jff"\tJUMBLE_CUSTOM($n,$f);\n";
1315+
print$jff"\tJUMBLE_CUSTOM($n,$f);\n"
1316+
unless$query_jumble_ignore;
13171317
}
13181318
elsif (($t =~/^(\w+)\*$/or$t =~/^struct\s+(\w+)\*$/)
13191319
and elem$1,@node_types)
13201320
{
1321-
# Squash constants if requested.
1321+
#Node type.Squash constants if requested.
13221322
if ($query_jumble_squash)
13231323
{
13241324
print$jff"\tJUMBLE_ELEMENTS($f);\n"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp