Skip to content

Commit 87a37d7

Browse files
committed
1 parent e5c8a89 commit 87a37d7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Additionally, we have fixed many errors and improved the code quality and the te
7272
* support for Postgresql **drop** function
7373
* support table option **character set** and **index** options
7474
* support Postgresql optional **TABLE** in **TRUNCATE**
75+
* support for `ANALYZE mytable`
7576

7677

7778
## Building from the sources

src/test/java/net/sf/jsqlparser/statement/analyze/AnalyzeTest.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import java.io.StringReader;
1818

1919
import static net.sf.jsqlparser.test.TestUtils.assertDeparse;
20+
import static net.sf.jsqlparser.test.TestUtils.assertSqlCanBeParsedAndDeparsed;
2021
import static org.junit.jupiter.api.Assertions.assertEquals;
2122

2223
public class AnalyzeTest {
@@ -32,5 +33,9 @@ public void testAnalyze() throws JSQLParserException {
3233

3334
assertDeparse(new Analyze().withTable(new Table("mytab")), statement);
3435
}
35-
36+
37+
@Test
38+
public void testAnalyze2() throws JSQLParserException {
39+
assertSqlCanBeParsedAndDeparsed("ANALYZE mytable");
40+
}
3641
}

0 commit comments

Comments
 (0)