Commit 6528139
committed
Print out error position for some ALTER TABLE ALTER COLUMN type
A ParseState exists in ATPrepAlterColumnType() since its introduction
in 077db40, and it has never relied on a query string that could be
used to point at a location in the origin string on error.
The output of some regression tests are updated, showing the error
location where applicable. Six error strings are upgraded with the
error location.
Author: Jian He
Discussion: https://postgr.es/m/CACJufxGfbPfWLjcEz33G9eW_epDW0UDi2H05i9eSTPKGJ4rxSA@mail.gmail.com1 parent 14793f4 commit 6528139
File tree
4 files changed
+34
-10
lines changed- src
- backend/commands
- test/regress/expected
4 files changed
+34
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13410 | 13410 | | |
13411 | 13411 | | |
13412 | 13412 | | |
| 13413 | + | |
| 13414 | + | |
13413 | 13415 | | |
13414 | 13416 | | |
13415 | 13417 | | |
13416 | | - | |
| 13418 | + | |
| 13419 | + | |
13417 | 13420 | | |
13418 | 13421 | | |
13419 | 13422 | | |
13420 | 13423 | | |
13421 | 13424 | | |
13422 | 13425 | | |
13423 | 13426 | | |
13424 | | - | |
| 13427 | + | |
| 13428 | + | |
13425 | 13429 | | |
13426 | 13430 | | |
13427 | 13431 | | |
13428 | 13432 | | |
13429 | 13433 | | |
13430 | 13434 | | |
13431 | 13435 | | |
13432 | | - | |
13433 | | - | |
| 13436 | + | |
| 13437 | + | |
13434 | 13438 | | |
13435 | 13439 | | |
13436 | 13440 | | |
| |||
13440 | 13444 | | |
13441 | 13445 | | |
13442 | 13446 | | |
13443 | | - | |
| 13447 | + | |
| 13448 | + | |
13444 | 13449 | | |
13445 | 13450 | | |
13446 | 13451 | | |
| |||
13450 | 13455 | | |
13451 | 13456 | | |
13452 | 13457 | | |
13453 | | - | |
13454 | | - | |
| 13458 | + | |
| 13459 | + | |
13455 | 13460 | | |
13456 | 13461 | | |
13457 | 13462 | | |
| |||
13460 | 13465 | | |
13461 | 13466 | | |
13462 | 13467 | | |
13463 | | - | |
| 13468 | + | |
| 13469 | + | |
13464 | 13470 | | |
13465 | 13471 | | |
13466 | | - | |
| 13472 | + | |
13467 | 13473 | | |
13468 | 13474 | | |
13469 | 13475 | | |
13470 | 13476 | | |
13471 | 13477 | | |
13472 | 13478 | | |
13473 | | - | |
| 13479 | + | |
13474 | 13480 | | |
13475 | 13481 | | |
13476 | 13482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3426 | 3426 | | |
3427 | 3427 | | |
3428 | 3428 | | |
| 3429 | + | |
| 3430 | + | |
3429 | 3431 | | |
3430 | 3432 | | |
| 3433 | + | |
| 3434 | + | |
3431 | 3435 | | |
3432 | 3436 | | |
| 3437 | + | |
| 3438 | + | |
3433 | 3439 | | |
3434 | 3440 | | |
3435 | 3441 | | |
| |||
3895 | 3901 | | |
3896 | 3902 | | |
3897 | 3903 | | |
| 3904 | + | |
| 3905 | + | |
3898 | 3906 | | |
3899 | 3907 | | |
3900 | 3908 | | |
3901 | 3909 | | |
| 3910 | + | |
| 3911 | + | |
3902 | 3912 | | |
3903 | 3913 | | |
3904 | 3914 | | |
| |||
4423 | 4433 | | |
4424 | 4434 | | |
4425 | 4435 | | |
| 4436 | + | |
| 4437 | + | |
4426 | 4438 | | |
4427 | 4439 | | |
4428 | 4440 | | |
| |||
4484 | 4496 | | |
4485 | 4497 | | |
4486 | 4498 | | |
| 4499 | + | |
| 4500 | + | |
4487 | 4501 | | |
4488 | 4502 | | |
4489 | 4503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
| 1127 | + | |
| 1128 | + | |
1127 | 1129 | | |
1128 | 1130 | | |
1129 | 1131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
0 commit comments