@@ -33,7 +33,7 @@ SELECT * FROM test_assign_booltrue(true, true);
33
33
34
34
SELECT * FROM test_assign_booltrue(false, true);
35
35
ERROR: value for domain booltrue violates check constraint "booltrue_check"
36
- CONTEXT: PL/pgSQL function test_assign_booltrue(boolean,boolean) line 3 during statement block local variable initialization
36
+ CONTEXT: PL/pgSQL function test_assign_booltrue(boolean,boolean) line 2 during statement block local variable initialization
37
37
SELECT * FROM test_assign_booltrue(true, false);
38
38
ERROR: value for domain booltrue violates check constraint "booltrue_check"
39
39
CONTEXT: PL/pgSQL function test_assign_booltrue(boolean,boolean) line 4 at assignment
@@ -76,7 +76,7 @@ ERROR: value for domain uint2 violates check constraint "uint2_check"
76
76
CONTEXT: PL/pgSQL function test_assign_uint2(integer,integer) line 4 at assignment
77
77
SELECT * FROM test_assign_uint2(-100, 50);
78
78
ERROR: value for domain uint2 violates check constraint "uint2_check"
79
- CONTEXT: PL/pgSQL function test_assign_uint2(integer,integer) line 3 during statement block local variable initialization
79
+ CONTEXT: PL/pgSQL function test_assign_uint2(integer,integer) line 2 during statement block local variable initialization
80
80
SELECT * FROM test_assign_uint2(null, 1);
81
81
test_assign_uint2
82
82
-------------------
@@ -115,7 +115,7 @@ SELECT * FROM test_assign_nnint(10, 20);
115
115
116
116
SELECT * FROM test_assign_nnint(null, 20);
117
117
ERROR: domain nnint does not allow null values
118
- CONTEXT: PL/pgSQL function test_assign_nnint(integer,integer) line 3 during statement block local variable initialization
118
+ CONTEXT: PL/pgSQL function test_assign_nnint(integer,integer) line 2 during statement block local variable initialization
119
119
SELECT * FROM test_assign_nnint(10, null);
120
120
ERROR: domain nnint does not allow null values
121
121
CONTEXT: PL/pgSQL function test_assign_nnint(integer,integer) line 4 at assignment
@@ -168,7 +168,7 @@ ERROR: value for domain ordered_pair_domain violates check constraint "ordered_
168
168
CONTEXT: PL/pgSQL function test_assign_ordered_pair_domain(integer,integer,integer) line 4 at assignment
169
169
SELECT * FROM test_assign_ordered_pair_domain(2,1,3);
170
170
ERROR: value for domain ordered_pair_domain violates check constraint "ordered_pair_domain_check"
171
- CONTEXT: PL/pgSQL function test_assign_ordered_pair_domain(integer,integer,integer) line 3 during statement block local variable initialization
171
+ CONTEXT: PL/pgSQL function test_assign_ordered_pair_domain(integer,integer,integer) line 2 during statement block local variable initialization
172
172
--
173
173
-- Arrays of domains
174
174
--
@@ -276,7 +276,7 @@ ERROR: domain nnint does not allow null values
276
276
CONTEXT: PL/pgSQL function test_assign_nnint_container(integer,integer,integer) line 4 at assignment
277
277
SELECT * FROM test_assign_nnint_container(1,null,3);
278
278
ERROR: domain nnint does not allow null values
279
- CONTEXT: PL/pgSQL function test_assign_nnint_container(integer,integer,integer) line 3 during statement block local variable initialization
279
+ CONTEXT: PL/pgSQL function test_assign_nnint_container(integer,integer,integer) line 2 during statement block local variable initialization
280
280
-- Since core system allows this:
281
281
SELECT null::nnint_container;
282
282
nnint_container
@@ -356,7 +356,7 @@ ERROR: value for domain ordered_named_pair violates check constraint "ordered_n
356
356
CONTEXT: PL/pgSQL function test_assign_ordered_named_pair(integer,integer,integer) line 4 at assignment
357
357
SELECT * FROM test_assign_ordered_named_pair(2,1,3);
358
358
ERROR: value for domain ordered_named_pair violates check constraint "ordered_named_pair_check"
359
- CONTEXT: PL/pgSQL function test_assign_ordered_named_pair(integer,integer,integer) line 3 during statement block local variable initialization
359
+ CONTEXT: PL/pgSQL function test_assign_ordered_named_pair(integer,integer,integer) line 2 during statement block local variable initialization
360
360
CREATE FUNCTION build_ordered_named_pairs(i int, j int) RETURNS ordered_named_pair[] AS $$
361
361
begin
362
362
return array[row(i, j), row(i, j+1)];
@@ -388,7 +388,7 @@ SELECT * FROM test_assign_ordered_named_pairs(1,2,3);
388
388
389
389
SELECT * FROM test_assign_ordered_named_pairs(2,1,3);
390
390
ERROR: value for domain ordered_named_pair violates check constraint "ordered_named_pair_check"
391
- CONTEXT: PL/pgSQL function test_assign_ordered_named_pairs(integer,integer,integer) line 3 during statement block local variable initialization
391
+ CONTEXT: PL/pgSQL function test_assign_ordered_named_pairs(integer,integer,integer) line 2 during statement block local variable initialization
392
392
SELECT * FROM test_assign_ordered_named_pairs(1,2,0); -- should fail someday
393
393
test_assign_ordered_named_pairs
394
394
---------------------------------
0 commit comments