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

Commit29b6ddd

Browse files
committed
Fix translate_columns[] arrays in opfamily-related psql functions
Make number of translate_columns elements match the number of output columns.The only "true" value, which was previously specified, seems to be intendedfor opfamily operator "purpose" column. But that column has already translatedvalues substituted. So, all elements in translate_columns[] should be "false".
1 parentb1953e6 commit29b6ddd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎src/bin/psql/describe.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6060,8 +6060,7 @@ listOperatorClasses(const char *access_method_pattern,
60606060
PGresult*res;
60616061
printQueryOptmyopt=pset.popt;
60626062
boolhave_where= false;
6063-
staticconstbooltranslate_columns[]= {false, false, false, false, false,
6064-
false, false, false};
6063+
staticconstbooltranslate_columns[]= {false, false, false, false, false, false, false};
60656064

60666065
initPQExpBuffer(&buf);
60676066

@@ -6149,8 +6148,7 @@ listOperatorFamilies(const char *access_method_pattern,
61496148
PGresult*res;
61506149
printQueryOptmyopt=pset.popt;
61516150
boolhave_where= false;
6152-
staticconstbooltranslate_columns[]= {false, false, false, false, false,
6153-
false, false, false};
6151+
staticconstbooltranslate_columns[]= {false, false, false, false};
61546152

61556153
initPQExpBuffer(&buf);
61566154

@@ -6230,8 +6228,7 @@ listOpFamilyOperators(const char *access_method_pattern,
62306228
printQueryOptmyopt=pset.popt;
62316229
boolhave_where= false;
62326230

6233-
staticconstbooltranslate_columns[]= {false, false, false, false, false,
6234-
false, false, true, false};
6231+
staticconstbooltranslate_columns[]= {false, false, false, false, false, false};
62356232

62366233
initPQExpBuffer(&buf);
62376234

@@ -6326,7 +6323,7 @@ listOpFamilyProcedures(const char *access_method_pattern,
63266323
PGresult*res;
63276324
printQueryOptmyopt=pset.popt;
63286325
boolhave_where= false;
6329-
staticconstbooltranslate_columns[]= {false, false, false, false, false, false, false};
6326+
staticconstbooltranslate_columns[]= {false, false, false, false, false, false};
63306327

63316328
initPQExpBuffer(&buf);
63326329

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp