forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f23ded
committed
Print out error position for some more DDLs
The following commands gain some information about the error position inthe query, should they fail when looking at the type used:- CREATE TYPE (LIKE)- CREATE TABLE OFBoth are related to typenameType() where the type name lookup is done.These calls gain the ParseState that already exists in these paths.Author: Kirill Reshke, Jian HeReviewed-by: Álvaro Herrera, Michael PaquierDiscussion:https://postgr.es/m/CALdSSPhqfvKbDwqJaY=yEePi_aq61GmMpW88i6ZH7CMG_2Z4Cg@mail.gmail.com1 parente116b70 commit0f23ded
File tree
4 files changed
+6
-2
lines changed- src
- backend
- commands
- parser
- test/regress/expected
4 files changed
+6
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 |
| - | |
| 351 | + | |
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1615 | 1615 |
| |
1616 | 1616 |
| |
1617 | 1617 |
| |
1618 |
| - | |
| 1618 | + | |
1619 | 1619 |
| |
1620 | 1620 |
| |
1621 | 1621 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1026 | 1026 |
| |
1027 | 1027 |
| |
1028 | 1028 |
| |
| 1029 | + | |
| 1030 | + | |
1029 | 1031 |
| |
1030 | 1032 |
| |
1031 | 1033 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
| 3 | + | |
| 4 | + | |
3 | 5 |
| |
4 | 6 |
| |
5 | 7 |
| |
|
0 commit comments
Comments
(0)