OSDN Git Service
(root)
/
pghintplan
/
pg_hint_plan.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bogus error handling
[pghintplan/pg_hint_plan.git]
/
pg_hint_plan.c
diff --git
a/pg_hint_plan.c
b/pg_hint_plan.c
index
3c99581
..
8004d6b
100644
(file)
--- a/
pg_hint_plan.c
+++ b/
pg_hint_plan.c
@@
-2583,8
+2583,7
@@
set_config_int32_option(const char *name, int32 value, GucContext context)
if (snprintf(buf, 16, "%d", value) < 0)
{
ereport(pg_hint_plan_message_level,
- (errmsg ("Cannot set integer value: %d: %s",
- max_hint_nworkers, strerror(errno))));
+ (errmsg ("Failed to convert integer to string: %d", value)));
return false;
}