File tree Expand file tree Collapse file tree 3 files changed +19
-8
lines changed
src/main/java/net/sf/jsqlparser/util/deparser Expand file tree Collapse file tree 3 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,22 @@ Also I would like to know about needed examples or documentation stuff.
38
38
39
39
## Extensions in the latest SNAPSHOT version 0.9.5
40
40
41
- * support for ** insert ... on duplicate key update**
42
- * improved support for ** alter table** statements
43
- * first Oracle hint support for ** select** statements
44
- * first ** alter table foreign key** support
45
- * first ** merge** support
41
+ * support for ** ORDER BY** and ** LIMIT** in ** UPDATE** and ** DELETE** statements
42
+
43
+ ~~~
44
+ UPDATE tablename SET ... ORDER BY col;
45
+ UPDATE tablename SET ... ORDER BY col LIMIT 10;
46
+ UPDATE table1 A SET ... LIMIT 10;
47
+ DELETE FROM tablename LIMIT 5;
48
+ DELETE FROM tablename ORDER BY col;
49
+ DELETE FROM tablename ORDER BY col LIMIT 10;
50
+ ~~~
51
+
52
+ * support for ** INSERT ... ON DUPLICATE KEY UPDATE**
53
+ * improved support for ** ALTER TABLE** statements
54
+ * first Oracle hint support for ** SELECT** statements
55
+ * first ** ALTER TABLE FOREIGN KEY** support
56
+ * first ** MERGE** support
46
57
* first version of escaped single quotes support
47
58
48
59
~~~
Original file line number Diff line number Diff line change 25
25
26
26
public class LimitDeparser {
27
27
28
- private StringBuilder buffer ;
28
+ private final StringBuilder buffer ;
29
29
30
30
public LimitDeparser (StringBuilder buffer ) {
31
31
this .buffer = buffer ;
Original file line number Diff line number Diff line change 30
30
31
31
public class OrderByDeParser {
32
32
33
- private StringBuilder buffer ;
34
- private ExpressionVisitor expressionVisitor ;
33
+ private final StringBuilder buffer ;
34
+ private final ExpressionVisitor expressionVisitor ;
35
35
36
36
public OrderByDeParser (ExpressionVisitor expressionVisitor , StringBuilder buffer ) {
37
37
this .expressionVisitor = expressionVisitor ;
You can’t perform that action at this time.
0 commit comments