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

Commit6d59a21

Browse files
committed
Clean up cpluspluscheck violation.
"typename" is a C++ keyword, so pg_upgrade.h fails to compile in C++.Fortunately, there seems no likely reason for somebody to need todo that. Nonetheless, it's project policy that all .h files shouldpass cpluspluscheck, so rename the argument to fix that.Oversight in57c081d; back-patch as that was. (The policy requiringpg_upgrade.h to pass cpluspluscheck only goes back to v12, but itseems best to keep this code looking the same in all branches.)
1 parent8bdd6f5 commit6d59a21

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/bin/pg_upgrade/pg_upgrade.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ boolcheck_for_data_types_usage(ClusterInfo *cluster,
443443
constchar*base_query,
444444
constchar*output_path);
445445
boolcheck_for_data_type_usage(ClusterInfo*cluster,
446-
constchar*typename,
446+
constchar*type_name,
447447
constchar*output_path);
448448
voidnew_9_0_populate_pg_largeobject_metadata(ClusterInfo*cluster,
449449
boolcheck_mode);

‎src/bin/pg_upgrade/version.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,20 +233,20 @@ check_for_data_types_usage(ClusterInfo *cluster,
233233
*
234234
* If so, write a report to the given file name, and return true.
235235
*
236-
*typename should be a fully qualified type name. This is just a
236+
*type_name should be a fully qualified type name. This is just a
237237
* trivial wrapper around check_for_data_types_usage() to convert a
238238
* type name into a base query.
239239
*/
240240
bool
241241
check_for_data_type_usage(ClusterInfo*cluster,
242-
constchar*typename,
242+
constchar*type_name,
243243
constchar*output_path)
244244
{
245245
boolfound;
246246
char*base_query;
247247

248248
base_query=psprintf("SELECT '%s'::pg_catalog.regtype AS oid",
249-
typename);
249+
type_name);
250250

251251
found=check_for_data_types_usage(cluster,base_query,output_path);
252252

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp