@@ -9848,6 +9848,9 @@ impl<'a> Parser<'a> {
9848
9848
if self.parse_keyword(Keyword::UNSIGNED) {
9849
9849
Ok(DataType::TinyIntUnsigned(optional_precision?))
9850
9850
} else {
9851
+ if dialect.supports_data_type_signed_suffix() {
9852
+ let _ = self.parse_keyword(Keyword::SIGNED);
9853
+ }
9851
9854
Ok(DataType::TinyInt(optional_precision?))
9852
9855
}
9853
9856
}
@@ -9864,6 +9867,9 @@ impl<'a> Parser<'a> {
9864
9867
if self.parse_keyword(Keyword::UNSIGNED) {
9865
9868
Ok(DataType::SmallIntUnsigned(optional_precision?))
9866
9869
} else {
9870
+ if dialect.supports_data_type_signed_suffix() {
9871
+ let _ = self.parse_keyword(Keyword::SIGNED);
9872
+ }
9867
9873
Ok(DataType::SmallInt(optional_precision?))
9868
9874
}
9869
9875
}
@@ -9872,6 +9878,9 @@ impl<'a> Parser<'a> {
9872
9878
if self.parse_keyword(Keyword::UNSIGNED) {
9873
9879
Ok(DataType::MediumIntUnsigned(optional_precision?))
9874
9880
} else {
9881
+ if dialect.supports_data_type_signed_suffix() {
9882
+ let _ = self.parse_keyword(Keyword::SIGNED);
9883
+ }
9875
9884
Ok(DataType::MediumInt(optional_precision?))
9876
9885
}
9877
9886
}
@@ -9880,6 +9889,9 @@ impl<'a> Parser<'a> {
9880
9889
if self.parse_keyword(Keyword::UNSIGNED) {
9881
9890
Ok(DataType::IntUnsigned(optional_precision?))
9882
9891
} else {
9892
+ if dialect.supports_data_type_signed_suffix() {
9893
+ let _ = self.parse_keyword(Keyword::SIGNED);
9894
+ }
9883
9895
Ok(DataType::Int(optional_precision?))
9884
9896
}
9885
9897
}
@@ -9909,6 +9921,9 @@ impl<'a> Parser<'a> {
9909
9921
if self.parse_keyword(Keyword::UNSIGNED) {
9910
9922
Ok(DataType::IntegerUnsigned(optional_precision?))
9911
9923
} else {
9924
+ if dialect.supports_data_type_signed_suffix() {
9925
+ let _ = self.parse_keyword(Keyword::SIGNED);
9926
+ }
9912
9927
Ok(DataType::Integer(optional_precision?))
9913
9928
}
9914
9929
}
@@ -9917,6 +9932,9 @@ impl<'a> Parser<'a> {
9917
9932
if self.parse_keyword(Keyword::UNSIGNED) {
9918
9933
Ok(DataType::BigIntUnsigned(optional_precision?))
9919
9934
} else {
9935
+ if dialect.supports_data_type_signed_suffix() {
9936
+ let _ = self.parse_keyword(Keyword::SIGNED);
9937
+ }
9920
9938
Ok(DataType::BigInt(optional_precision?))
9921
9939
}
9922
9940
}
0 commit comments