forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf9e6e27
committed
Break transformCreateStmt() into multiple routines and make
transformAlterStmt() use these routines, instead of having lots ofduplicate (not to mention should-have-been-duplicate) code.Adding a column with a CHECK constraint actually works now,and the tests to reject unsupported DEFAULT and NOT NULL clausesactually fire now. ALTER TABLE ADD PRIMARY KEY works, modulohaving to have created the column(s) NOT NULL already.1 parente98476e commitf9e6e27
File tree
9 files changed
+1118
-1173
lines changed- doc/src/sgml/ref
- src
- backend
- catalog
- commands
- parser
- tcop
- include
- commands
- nodes
- test/regress/expected
9 files changed
+1118
-1173
lines changedLines changed: 6 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
27 |
| - | |
28 |
| - | |
| 27 | + | |
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
| |||
202 | 201 |
| |
203 | 202 |
| |
204 | 203 |
| |
205 |
| - | |
206 |
| - | |
207 |
| - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
208 | 207 |
| |
209 | 208 |
| |
210 | 209 |
| |
211 | 210 |
| |
212 | 211 |
| |
213 |
| - | |
214 |
| - | |
215 |
| - | |
216 |
| - | |
217 |
| - | |
218 |
| - | |
219 |
| - | |
220 | 212 |
| |
221 | 213 |
| |
222 | 214 |
| |
| |||
318 | 310 |
| |
319 | 311 |
| |
320 | 312 |
| |
321 |
| - | |
| 313 | + | |
322 | 314 |
| |
323 | 315 |
| |
324 | 316 |
| |
|
Lines changed: 5 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
555 | 555 |
| |
556 | 556 |
| |
557 | 557 |
| |
558 |
| - | |
| 558 | + | |
559 | 559 |
| |
560 |
| - | |
561 | 560 |
| |
562 | 561 |
| |
563 | 562 |
| |
564 | 563 |
| |
565 | 564 |
| |
566 | 565 |
| |
567 | 566 |
| |
568 |
| - | |
569 |
| - | |
570 |
| - | |
571 |
| - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
572 | 570 |
| |
573 |
| - | |
574 | 571 |
|
0 commit comments
Comments
(0)