mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
In psql, rename trans_* variables to translate_*, for clarity.
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2008, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.108 2008/05/21 16:00:10 mha Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.109 2008/07/14 22:00:04 momjian Exp $
|
||||
*/
|
||||
#include "postgres_fe.h"
|
||||
|
||||
@ -2313,7 +2313,7 @@ printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout, FILE *f
|
||||
}
|
||||
|
||||
printTableAddHeader(&cont, PQfname(result, i),
|
||||
opt->trans_headers, align);
|
||||
opt->translate_header, align);
|
||||
}
|
||||
|
||||
/* set cells */
|
||||
@ -2329,7 +2329,7 @@ printQuery(const PGresult *result, const printQueryOpt *opt, FILE *fout, FILE *f
|
||||
else
|
||||
cell = PQgetvalue(result, r, c);
|
||||
|
||||
translate = (opt->trans_columns && opt->trans_columns[c]);
|
||||
translate = (opt->translate_columns && opt->translate_columns[c]);
|
||||
printTableAddCell(&cont, cell, translate);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user