Commit af7dd696 authored by Robert Haas's avatar Robert Haas

Fix typos pointed out by Noah Misch.

parent a870c7fd
...@@ -748,9 +748,9 @@ numeric_transform(PG_FUNCTION_ARGS) ...@@ -748,9 +748,9 @@ numeric_transform(PG_FUNCTION_ARGS)
/* /*
* If new_typmod < VARHDRSZ, the destination is unconstrained; that's * If new_typmod < VARHDRSZ, the destination is unconstrained; that's
* always OK. If old_typmod >= VARHDRSZ, the source is constained. * always OK. If old_typmod >= VARHDRSZ, the source is constrained.
* and we're OK if the scale is unchanged and the precison is not * and we're OK if the scale is unchanged and the precison is not
* decreasing. See further nodes in function header comment. * decreasing. See further notes in function header comment.
*/ */
if (new_typmod < VARHDRSZ || (old_typmod >= VARHDRSZ && if (new_typmod < VARHDRSZ || (old_typmod >= VARHDRSZ &&
new_scale == old_scale && new_precision >= old_precision)) new_scale == old_scale && new_precision >= old_precision))
......
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