diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pl/plpgsql/src/pl_exec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pl/plpgsql/src/pl_exec.c b/src/pl/plpgsql/src/pl_exec.c index 387362a59a2..717ad798772 100644 --- a/src/pl/plpgsql/src/pl_exec.c +++ b/src/pl/plpgsql/src/pl_exec.c @@ -5850,8 +5850,7 @@ exec_simple_recheck_plan(PLpgSQL_expr *expr, CachedPlan *cplan) } /* ---------- - * exec_set_found Set the global found variable - * to true/false + * exec_set_found Set the global found variable to true/false * ---------- */ static void @@ -5860,7 +5859,7 @@ exec_set_found(PLpgSQL_execstate *estate, bool state) PLpgSQL_var *var; var = (PLpgSQL_var *) (estate->datums[estate->found_varno]); - var->value = PointerGetDatum(state); + var->value = BoolGetDatum(state); var->isnull = false; } |