- Notifications
You must be signed in to change notification settings - Fork5k
Commit0a665bb
committed
Add a couple of regression test cases related to array subscripting.
Exercise some error cases that were never reached in the existingregression tests. This is partly for code-coverage reasons, andpartly to memorialize the current behavior in advance of plannedchanges for generic subscripting.Also, I noticed that type_sanity's check to verify that all standardtypes have array types was never extended when we added arrays forall system catalog rowtypes (f7f70d5), nor when we added arraysover domain types (c12d570). So do that. Also, since the query'sexpected output isn't empty, it seems like a good idea to add anORDER BY to make sure the result stays stable.1 parent6ba581c commit0a665bb
File tree
6 files changed
+41
-13
lines changed- src/test/regress
- expected
- sql
6 files changed
+41
-13
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
29 | 39 |
| |
30 | 40 |
| |
31 | 41 |
| |
| |||
225 | 235 |
| |
226 | 236 |
| |
227 | 237 |
| |
| 238 | + | |
| 239 | + | |
| 240 | + | |
228 | 241 |
| |
229 | 242 |
| |
230 | 243 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
118 | 118 |
| |
119 | 119 |
| |
120 | 120 |
| |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
121 | 127 |
| |
122 | 128 |
| |
123 | 129 |
| |
124 | 130 |
| |
125 |
| - | |
126 | 131 |
| |
| 132 | + | |
127 | 133 |
| |
128 | 134 |
| |
129 | 135 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
63 | 62 |
| |
64 | 63 |
| |
65 |
| - | |
| 64 | + | |
66 | 65 |
| |
67 | 66 |
| |
68 | 67 |
| |
69 |
| - | |
| 68 | + | |
| 69 | + | |
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
| |||
122 | 125 |
| |
123 | 126 |
| |
124 | 127 |
| |
| 128 | + | |
| 129 | + | |
125 | 130 |
| |
126 | 131 |
| |
127 | 132 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
66 | 70 |
| |
67 | 71 |
| |
68 | 72 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
57 | 56 |
| |
58 | 57 |
| |
59 | 58 |
| |
60 |
| - | |
| 59 | + | |
61 | 60 |
| |
62 | 61 |
| |
63 | 62 |
| |
64 |
| - | |
| 63 | + | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
|
0 commit comments
Comments
(0)