Skip to content

Commit 0b7f300

Browse files
committed
correced select into parsing and deparsing
1 parent 096e874 commit 0b7f300

File tree

8 files changed

+375
-273
lines changed

8 files changed

+375
-273
lines changed

src/main/java/net/sf/jsqlparser/statement/StatementVisitor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import net.sf.jsqlparser.statement.create.view.CreateView;
2828
import net.sf.jsqlparser.statement.delete.Delete;
2929
import net.sf.jsqlparser.statement.drop.Drop;
30+
import net.sf.jsqlparser.statement.execute.Execute;
3031
import net.sf.jsqlparser.statement.insert.Insert;
3132
import net.sf.jsqlparser.statement.replace.Replace;
3233
import net.sf.jsqlparser.statement.select.Select;
@@ -58,4 +59,6 @@ public interface StatementVisitor {
5859
void visit(Alter alter);
5960

6061
void visit(Statements stmts);
62+
63+
void visit(Execute execute);
6164
}

src/main/java/net/sf/jsqlparser/statement/StatementVisitorAdapter.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import net.sf.jsqlparser.statement.create.view.CreateView;
2828
import net.sf.jsqlparser.statement.delete.Delete;
2929
import net.sf.jsqlparser.statement.drop.Drop;
30+
import net.sf.jsqlparser.statement.execute.Execute;
3031
import net.sf.jsqlparser.statement.insert.Insert;
3132
import net.sf.jsqlparser.statement.replace.Replace;
3233
import net.sf.jsqlparser.statement.select.Select;
@@ -93,4 +94,9 @@ public void visit(Alter alter) {
9394
public void visit(Statements stmts) {
9495

9596
}
97+
98+
@Override
99+
public void visit(Execute execute) {
100+
101+
}
96102
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* #%L
3+
* JSQLParser library
4+
* %%
5+
* Copyright (C) 2004 - 2014 JSQLParser
6+
* %%
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Lesser General Public License as
9+
* published by the Free Software Foundation, either version 2.1 of the
10+
* License, or (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU General Lesser Public License for more details.
16+
*
17+
* You should have received a copy of the GNU General Lesser Public
18+
* License along with this program. If not, see
19+
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
20+
* #L%
21+
*/
22+
/*
23+
* Copyright (C) 2014 JSQLParser.
24+
*
25+
* This library is free software; you can redistribute it and/or
26+
* modify it under the terms of the GNU Lesser General Public
27+
* License as published by the Free Software Foundation; either
28+
* version 2.1 of the License, or (at your option) any later version.
29+
*
30+
* This library is distributed in the hope that it will be useful,
31+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
32+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33+
* Lesser General Public License for more details.
34+
*
35+
* You should have received a copy of the GNU Lesser General Public
36+
* License along with this library; if not, write to the Free Software
37+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
38+
* MA 02110-1301 USA
39+
*/
40+
41+
package net.sf.jsqlparser.statement.execute;
42+
43+
import net.sf.jsqlparser.statement.Statement;
44+
import net.sf.jsqlparser.statement.StatementVisitor;
45+
46+
/**
47+
*
48+
* @author toben
49+
*/
50+
public class Execute implements Statement {
51+
52+
@Override
53+
public void accept(StatementVisitor statementVisitor) {
54+
statementVisitor.visit(this);
55+
}
56+
57+
}

0 commit comments

Comments
 (0)