Commit 29b6ddd3 authored by Alexander Korotkov's avatar Alexander Korotkov

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 intended
for opfamily operator "purpose" column.  But that column has already translated
values substituted.  So, all elements in translate_columns[] should be "false".
parent b1953e67
...@@ -6060,8 +6060,7 @@ listOperatorClasses(const char *access_method_pattern, ...@@ -6060,8 +6060,7 @@ listOperatorClasses(const char *access_method_pattern,
PGresult *res; PGresult *res;
printQueryOpt myopt = pset.popt; printQueryOpt myopt = pset.popt;
bool have_where = false; bool have_where = false;
static const bool translate_columns[] = {false, false, false, false, false, static const bool translate_columns[] = {false, false, false, false, false, false, false};
false, false, false};
initPQExpBuffer(&buf); initPQExpBuffer(&buf);
...@@ -6149,8 +6148,7 @@ listOperatorFamilies(const char *access_method_pattern, ...@@ -6149,8 +6148,7 @@ listOperatorFamilies(const char *access_method_pattern,
PGresult *res; PGresult *res;
printQueryOpt myopt = pset.popt; printQueryOpt myopt = pset.popt;
bool have_where = false; bool have_where = false;
static const bool translate_columns[] = {false, false, false, false, false, static const bool translate_columns[] = {false, false, false, false};
false, false, false};
initPQExpBuffer(&buf); initPQExpBuffer(&buf);
...@@ -6230,8 +6228,7 @@ listOpFamilyOperators(const char *access_method_pattern, ...@@ -6230,8 +6228,7 @@ listOpFamilyOperators(const char *access_method_pattern,
printQueryOpt myopt = pset.popt; printQueryOpt myopt = pset.popt;
bool have_where = false; bool have_where = false;
static const bool translate_columns[] = {false, false, false, false, false, static const bool translate_columns[] = {false, false, false, false, false, false};
false, false, true, false};
initPQExpBuffer(&buf); initPQExpBuffer(&buf);
...@@ -6326,7 +6323,7 @@ listOpFamilyProcedures(const char *access_method_pattern, ...@@ -6326,7 +6323,7 @@ listOpFamilyProcedures(const char *access_method_pattern,
PGresult *res; PGresult *res;
printQueryOpt myopt = pset.popt; printQueryOpt myopt = pset.popt;
bool have_where = false; bool have_where = false;
static const bool translate_columns[] = {false, false, false, false, false, false, false}; static const bool translate_columns[] = {false, false, false, false, false, false};
initPQExpBuffer(&buf); initPQExpBuffer(&buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment