forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c462ba
committed
transformCreateStmt should put Ident nodes, not ColumnDef nodes, into
keys lists of Constraint nodes. This eliminates a type pun that wouldprobably have caused trouble someday, and eliminates circular referencesin the parsetree that were causing trouble now.Also, change parser's uses of strcasecmp() to strcmp(). Since scan.lhas downcased any unquoted identifier, it is never correct to check anidentifier with strcasecmp() in the parser. For example,CREATE TABLE FOO (f1 int, UNIQUE("F1"));was accepted, which is wrong, and xlateSqlFunc did more than it should:select datetime();ERROR: Function 'timestamp()' does not exist(good)select "DateTime"();ERROR: Function 'timestamp()' does not exist(bad)1 parent8f50f7a commit5c462ba
2 files changed
+36
-32
lines changedLines changed: 22 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
570 | 570 |
| |
571 | 571 |
| |
572 | 572 |
| |
573 |
| - | |
| 573 | + | |
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
| |||
679 | 679 |
| |
680 | 680 |
| |
681 | 681 |
| |
682 |
| - | |
| 682 | + | |
683 | 683 |
| |
684 | 684 |
| |
685 | 685 |
| |
| |||
766 | 766 |
| |
767 | 767 |
| |
768 | 768 |
| |
769 |
| - | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
770 | 774 |
| |
771 | 775 |
| |
772 | 776 |
| |
773 | 777 |
| |
774 | 778 |
| |
775 | 779 |
| |
776 | 780 |
| |
777 |
| - | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
778 | 786 |
| |
779 | 787 |
| |
780 | 788 |
| |
| |||
890 | 898 |
| |
891 | 899 |
| |
892 | 900 |
| |
893 |
| - | |
894 |
| - | |
| 901 | + | |
895 | 902 |
| |
896 |
| - | |
897 |
| - | |
| 903 | + | |
| 904 | + | |
898 | 905 |
| |
899 |
| - | |
| 906 | + | |
900 | 907 |
| |
901 | 908 |
| |
902 |
| - | |
| 909 | + | |
| 910 | + | |
903 | 911 |
| |
904 |
| - | |
905 |
| - | |
906 |
| - | |
907 | 912 |
| |
908 |
| - | |
909 |
| - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
910 | 916 |
| |
911 | 917 |
| |
912 | 918 |
| |
| |||
919 | 925 |
| |
920 | 926 |
| |
921 | 927 |
| |
922 |
| - | |
923 |
| - | |
924 | 928 |
| |
925 | 929 |
| |
926 | 930 |
| |
|
Lines changed: 14 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
3969 | 3969 |
| |
3970 | 3970 |
| |
3971 | 3971 |
| |
3972 |
| - | |
| 3972 | + | |
3973 | 3973 |
| |
3974 | 3974 |
| |
3975 | 3975 |
| |
| |||
5544 | 5544 |
| |
5545 | 5545 |
| |
5546 | 5546 |
| |
5547 |
| - | |
| 5547 | + | |
5548 | 5548 |
| |
5549 |
| - | |
| 5549 | + | |
5550 | 5550 |
| |
5551 |
| - | |
| 5551 | + | |
5552 | 5552 |
| |
5553 | 5553 |
| |
5554 | 5554 |
| |
| |||
5564 | 5564 |
| |
5565 | 5565 |
| |
5566 | 5566 |
| |
5567 |
| - | |
5568 |
| - | |
| 5567 | + | |
| 5568 | + | |
5569 | 5569 |
| |
5570 |
| - | |
| 5570 | + | |
5571 | 5571 |
| |
5572 |
| - | |
5573 |
| - | |
| 5572 | + | |
| 5573 | + | |
5574 | 5574 |
| |
5575 |
| - | |
| 5575 | + | |
5576 | 5576 |
| |
5577 |
| - | |
| 5577 | + | |
5578 | 5578 |
| |
5579 |
| - | |
| 5579 | + | |
5580 | 5580 |
| |
5581 |
| - | |
| 5581 | + | |
5582 | 5582 |
| |
5583 | 5583 |
| |
5584 | 5584 |
| |
|
0 commit comments
Comments
(0)