Skip to content

Commit c3ec64d

Browse files
committed
little housekeeping
1 parent 8ae4bea commit c3ec64d

File tree

2 files changed

+7
-42
lines changed

2 files changed

+7
-42
lines changed

README.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -23,50 +23,10 @@ To help JSqlParsers development you are encouraged to provide
2323

2424
Also I would like to know about needed examples or documentation stuff.
2525

26-
## Extensions in the latest SNAPSHOT version 0.9.1
27-
28-
* Simple support for EXECUTE.
29-
30-
```sql
31-
EXECUTE myproc 'a', 2, 'b'
32-
```
33-
34-
* Improved support for select into clause.
35-
36-
```sql
37-
SELECT * INTO mytable FROM mytable2
38-
```
39-
40-
* Improved support for insert table using with clause.
41-
42-
```sql
43-
INSERT INTO mytable (mycolumn) WITH a AS (SELECT mycolumn FROM mytable) SELECT mycolumn FROM a
44-
```
45-
46-
* Support for ```limit 0``` and ```limit null``` clause.
47-
* Window functions now allow simple expressions for partition by.
48-
* Support for create table as select syntax:
49-
50-
```sql
51-
CREATE TABLE table1 as SELECT col1, col2 FROM table2
52-
```
53-
54-
* First simple support of postgresqls JSON syntax.
55-
56-
```sql
57-
SELECT data->'images'->'thumbnail'->'url' AS thumb FROM instagram
58-
```
59-
60-
* Included support for returning for insert statements.
61-
62-
```sql
63-
INSERT INTO mytable (mycolumn) VALUES ('1') RETURNING id
64-
```
65-
66-
* Included support for multitable update statements.
26+
## Extensions in the latest SNAPSHOT version 0.9.2
6727

6828
```sql
69-
UPDATE table1, table2 SET table1.col2 = table2.col2, table2.col3 = 'UPDATED' WHERE table1.col1 = table2.col1
29+
UPDATE mytable SET (col) = (SELECT a FROM mytable2)
7030
```
7131

7232
## Extensions of JSqlParser releases

src/test/java/net/sf/jsqlparser/test/update/UpdateTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,9 @@ public void testUpdateMultiTable() throws JSQLParserException {
6060
public void testUpdateWithSelect() throws JSQLParserException {
6161
assertSqlCanBeParsedAndDeparsed("UPDATE NATION SET (N_NATIONKEY) = (SELECT ? FROM SYSIBM.SYSDUMMY1)");
6262
}
63+
64+
@Test
65+
public void testUpdateWithSelect2() throws JSQLParserException {
66+
assertSqlCanBeParsedAndDeparsed("UPDATE mytable SET (col1, col2, col3) = (SELECT a, b, c FROM mytable2)");
67+
}
6368
}

0 commit comments

Comments
 (0)