Commit deed2ce
committed
MySQL: Allow optional
In MySQL, a data type like `INT(20) SIGNED` is equivalent to `INT(20)`.
In other dialects, this may be interpreted differently; e.g. in
Postgres, `SELECT 1::integer signed` indicates an alias of "signed". So
we parse the optional `SIGNED` suffix only on dialects that allow it (I
currently don't know of any other than MySQL).SIGNED suffix on integer data types1 parent 9127370 commit deed2ce
File tree
5 files changed
+70
-0
lines changed- src
- dialect
- parser
- tests
5 files changed
+70
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
835 | 835 | | |
836 | 836 | | |
837 | 837 | | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
838 | 843 | | |
839 | 844 | | |
840 | 845 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9852 | 9852 | | |
9853 | 9853 | | |
9854 | 9854 | | |
| 9855 | + | |
| 9856 | + | |
9855 | 9857 | | |
9856 | 9858 | | |
9857 | 9859 | | |
| |||
9868 | 9870 | | |
9869 | 9871 | | |
9870 | 9872 | | |
| 9873 | + | |
| 9874 | + | |
9871 | 9875 | | |
9872 | 9876 | | |
9873 | 9877 | | |
| |||
9876 | 9880 | | |
9877 | 9881 | | |
9878 | 9882 | | |
| 9883 | + | |
| 9884 | + | |
9879 | 9885 | | |
9880 | 9886 | | |
9881 | 9887 | | |
| |||
9884 | 9890 | | |
9885 | 9891 | | |
9886 | 9892 | | |
| 9893 | + | |
| 9894 | + | |
9887 | 9895 | | |
9888 | 9896 | | |
9889 | 9897 | | |
| |||
9913 | 9921 | | |
9914 | 9922 | | |
9915 | 9923 | | |
| 9924 | + | |
| 9925 | + | |
9916 | 9926 | | |
9917 | 9927 | | |
9918 | 9928 | | |
| |||
9921 | 9931 | | |
9922 | 9932 | | |
9923 | 9933 | | |
| 9934 | + | |
| 9935 | + | |
9924 | 9936 | | |
9925 | 9937 | | |
9926 | 9938 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1705 | 1705 | | |
1706 | 1706 | | |
1707 | 1707 | | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1708 | 1753 | | |
1709 | 1754 | | |
1710 | 1755 | | |
| |||
0 commit comments