Skip to content

Commit 2aff1b3

Browse files
author
Mikhail Yevchenko
committed
Add test for stream parsing in SqlParserTest
1 parent d1f995a commit 2aff1b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/java/com/azazar/sqldumpparser/SqlParserTest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,17 @@ public void testDelete() throws Exception {
231231
assertEquals(42, sqlInt.getLong());
232232
}
233233

234+
@Test
235+
public void testStreamParsing() throws Exception {
236+
var stmt =
237+
"""
238+
DROP TABLE IF EXISTS `libgenrelist`;
239+
240+
/*!40101 SET @saved_cs_client = @@character_set_client */;
241+
""";
242+
var parser = new SqlParser();
243+
244+
parser.parse(new StringReader(stmt));
245+
}
246+
234247
}

0 commit comments

Comments
 (0)