Skip to content

Commit 9eec5f3

Browse files
committed
Remove distinctrow handling from this PR
1 parent 19c06a2 commit 9eec5f3

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

src/keywords.rs

-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ define_keywords!(
255255
DISCARD,
256256
DISCONNECT,
257257
DISTINCT,
258-
DISTINCTROW,
259258
DISTRIBUTE,
260259
DIV,
261260
DO,

src/parser/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -3553,9 +3553,7 @@ impl<'a> Parser<'a> {
35533553
pub fn parse_all_or_distinct(&mut self) -> Result<Option<Distinct>, ParserError> {
35543554
let loc = self.peek_token().location;
35553555
let all = self.parse_keyword(Keyword::ALL);
3556-
let distinct = self
3557-
.parse_one_of_keywords(&[Keyword::DISTINCT, Keyword::DISTINCTROW])
3558-
.is_some();
3556+
let distinct = self.parse_keyword(Keyword::DISTINCT);
35593557
if !distinct {
35603558
return Ok(None);
35613559
}

tests/sqlparser_mysql.rs

-8
Original file line numberDiff line numberDiff line change
@@ -2811,11 +2811,3 @@ fn test_group_concat() {
28112811
mysql_and_generic()
28122812
.verified_expr("GROUP_CONCAT(DISTINCT test_score ORDER BY test_score DESC SEPARATOR ' ')");
28132813
}
2814-
2815-
#[test]
2816-
fn parse_select_distinctrow() {
2817-
mysql().one_statement_parses_to(
2818-
"SELECT DISTINCTROW a FROM tbl",
2819-
"SELECT DISTINCT a FROM tbl",
2820-
);
2821-
}

0 commit comments

Comments
 (0)