@@ -493,15 +493,15 @@ begin
493493end$$ language plpgsql;
494494select doubledecrement(3); -- fail because of implicit null assignment
495495ERROR: domain pos_int does not allow null values
496- CONTEXT: PL/pgSQL function "doubledecrement" line 3 during statement block local variable initialization
496+ CONTEXT: PL/pgSQL function "doubledecrement(pos_int) " line 3 during statement block local variable initialization
497497create or replace function doubledecrement(p1 pos_int) returns pos_int as $$
498498declare v pos_int := 0;
499499begin
500500 return p1;
501501end$$ language plpgsql;
502502select doubledecrement(3); -- fail at initialization assignment
503503ERROR: value for domain pos_int violates check constraint "pos_int_check"
504- CONTEXT: PL/pgSQL function "doubledecrement" line 3 during statement block local variable initialization
504+ CONTEXT: PL/pgSQL function "doubledecrement(pos_int) " line 3 during statement block local variable initialization
505505create or replace function doubledecrement(p1 pos_int) returns pos_int as $$
506506declare v pos_int := 1;
507507begin
@@ -514,10 +514,10 @@ select doubledecrement(0); -- fail before call
514514ERROR: value for domain pos_int violates check constraint "pos_int_check"
515515select doubledecrement(1); -- fail at assignment to v
516516ERROR: value for domain pos_int violates check constraint "pos_int_check"
517- CONTEXT: PL/pgSQL function "doubledecrement" line 4 at assignment
517+ CONTEXT: PL/pgSQL function "doubledecrement(pos_int) " line 4 at assignment
518518select doubledecrement(2); -- fail at return
519519ERROR: value for domain pos_int violates check constraint "pos_int_check"
520- CONTEXT: PL/pgSQL function "doubledecrement" while casting return value to function's return type
520+ CONTEXT: PL/pgSQL function "doubledecrement(pos_int) " while casting return value to function's return type
521521select doubledecrement(3); -- good
522522 doubledecrement
523523-----------------
@@ -566,7 +566,7 @@ end$$ language plpgsql;
566566select array_elem_check(121.00);
567567ERROR: numeric field overflow
568568DETAIL: A field with precision 4, scale 2 must round to an absolute value less than 10^2.
569- CONTEXT: PL/pgSQL function "array_elem_check" line 5 at assignment
569+ CONTEXT: PL/pgSQL function "array_elem_check(numeric) " line 5 at assignment
570570select array_elem_check(1.23456);
571571 array_elem_check
572572------------------
@@ -584,7 +584,7 @@ end$$ language plpgsql;
584584select array_elem_check(121.00);
585585ERROR: numeric field overflow
586586DETAIL: A field with precision 4, scale 2 must round to an absolute value less than 10^2.
587- CONTEXT: PL/pgSQL function "array_elem_check" line 5 at assignment
587+ CONTEXT: PL/pgSQL function "array_elem_check(numeric) " line 5 at assignment
588588select array_elem_check(1.23456);
589589 array_elem_check
590590------------------
@@ -602,7 +602,7 @@ end$$ language plpgsql;
602602select array_elem_check(121.00);
603603ERROR: numeric field overflow
604604DETAIL: A field with precision 4, scale 2 must round to an absolute value less than 10^2.
605- CONTEXT: PL/pgSQL function "array_elem_check" line 5 at assignment
605+ CONTEXT: PL/pgSQL function "array_elem_check(numeric) " line 5 at assignment
606606select array_elem_check(1.23456);
607607 array_elem_check
608608------------------
@@ -650,7 +650,7 @@ select array_elem_check(3);
650650
651651select array_elem_check(-1);
652652ERROR: value for domain orderedpair violates check constraint "orderedpair_check"
653- CONTEXT: PL/pgSQL function "array_elem_check" line 5 at assignment
653+ CONTEXT: PL/pgSQL function "array_elem_check(integer) " line 5 at assignment
654654drop function array_elem_check(int);
655655--
656656-- Renaming
0 commit comments