File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -11909,7 +11909,6 @@ impl<'a> Parser<'a> {
1190911909 self.advance_token();
1191011910 let next_token = self.get_current_token();
1191111911 let next_token_index = self.get_current_index();
11912- let next_token_span = next_token.span;
1191311912
1191411913 let mut trailing_bracket: MatchedTrailingBracket = false.into();
1191511914 let mut data = match &next_token.token {
@@ -12172,9 +12171,13 @@ impl<'a> Parser<'a> {
1217212171 Ok(DataType::FixedString(character_length))
1217312172 }
1217412173 Keyword::TEXT => {
12175- let type_name = w.to_ident(next_token_span);
12176- if let Some(modifiers) = self.parse_optional_type_modifiers()? {
12177- Ok(DataType::Custom(type_name.into(), modifiers))
12174+ if dialect_of!(self is SnowflakeDialect) {
12175+ let type_name = w.to_ident(next_token.span);
12176+ if let Some(modifiers) = self.parse_optional_type_modifiers()? {
12177+ Ok(DataType::Custom(type_name.into(), modifiers))
12178+ } else {
12179+ Ok(DataType::Text)
12180+ }
1217812181 } else {
1217912182 Ok(DataType::Text)
1218012183 }
You can’t perform that action at this time.
0 commit comments