forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commita222f7f
committed
Remove broken code that tried to handle OVERLAPS with a single argument.
The SQL standard says that OVERLAPS should have a two-element rowconstructor on each side. The original coding of OVERLAPS support inour grammar attempted to extend that by allowing a single-element rowconstructor, which it internally duplicated ... or tried to, anyway.But that code has certainly not worked since our List infrastructure wasrewritten in 2004, and I'm none too sure it worked before that. As itstands, it ends up building a List that includes itself, leading toassorted undesirable behaviors later in the parser.Even if it worked as intended, it'd be a bit evil because of thepossibility of duplicate evaluation of a volatile function that the userhad written only once. Given the lack of documentation, test cases, orcomplaints, let's just get rid of the idea and only support the standardsyntax.While we're at it, improve the error cursor positioning for thewrong-number-of-arguments errors, and inline the makeOverlaps() functionsince it's only called in one place anyway.Per bug #9227 from Joshua Yanovski. Initial patch by Joshua Yanovski,extended a bit by me.1 parent7f3e17b commita222f7f
1 file changed
+13
-28
lines changedLines changed: 13 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
140 |
| - | |
141 | 139 |
| |
142 | 140 |
| |
143 | 141 |
| |
| |||
10949 | 10947 |
| |
10950 | 10948 |
| |
10951 | 10949 |
| |
10952 |
| - | |
| 10950 | + | |
| 10951 | + | |
| 10952 | + | |
| 10953 | + | |
| 10954 | + | |
| 10955 | + | |
| 10956 | + | |
| 10957 | + | |
| 10958 | + | |
| 10959 | + | |
| 10960 | + | |
| 10961 | + | |
| 10962 | + | |
10953 | 10963 |
| |
10954 | 10964 |
| |
10955 | 10965 |
| |
| |||
13397 | 13407 |
| |
13398 | 13408 |
| |
13399 | 13409 |
| |
13400 |
| - | |
13401 |
| - | |
13402 |
| - | |
13403 |
| - | |
13404 |
| - | |
13405 |
| - | |
13406 |
| - | |
13407 |
| - | |
13408 |
| - | |
13409 |
| - | |
13410 |
| - | |
13411 |
| - | |
13412 |
| - | |
13413 |
| - | |
13414 |
| - | |
13415 |
| - | |
13416 |
| - | |
13417 |
| - | |
13418 |
| - | |
13419 |
| - | |
13420 |
| - | |
13421 |
| - | |
13422 |
| - | |
13423 |
| - | |
13424 |
| - | |
13425 | 13410 |
| |
13426 | 13411 |
| |
13427 | 13412 |
| |
|
0 commit comments
Comments
(0)