Commit 4dfb065
committed
Fix bogus handling of bad strategy number in GIST consistent() functions.
Make sure we throw an error instead of silently doing the wrong thing when
fed a strategy number we don't recognize. Also, in the places that did
already throw an error, spell the error message in a way more consistent
with our message style guidelines.
Per report from Paul Jones. Although this is a bug, it won't occur unless
a superuser tries to do something he shouldn't, so it doesn't seem worth
back-patching.1 parent f0aa6c0 commit 4dfb065
1 file changed
+13
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
930 | 932 | | |
931 | 933 | | |
932 | 934 | | |
| |||
1015 | 1017 | | |
1016 | 1018 | | |
1017 | 1019 | | |
1018 | | - | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1019 | 1023 | | |
1020 | 1024 | | |
1021 | 1025 | | |
| |||
1306 | 1310 | | |
1307 | 1311 | | |
1308 | 1312 | | |
1309 | | - | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1310 | 1316 | | |
1311 | 1317 | | |
1312 | 1318 | | |
| |||
1422 | 1428 | | |
1423 | 1429 | | |
1424 | 1430 | | |
1425 | | - | |
| 1431 | + | |
1426 | 1432 | | |
| 1433 | + | |
1427 | 1434 | | |
1428 | 1435 | | |
1429 | 1436 | | |
| |||
1445 | 1452 | | |
1446 | 1453 | | |
1447 | 1454 | | |
1448 | | - | |
| 1455 | + | |
1449 | 1456 | | |
| 1457 | + | |
1450 | 1458 | | |
1451 | 1459 | | |
1452 | 1460 | | |
| |||
0 commit comments