-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Unsupported statement #1519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wumpz
merged 19 commits into
JSQLParser:master
from
manticore-projects:UnsupportedStatement
May 11, 2022
Merged
Unsupported statement #1519
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
de805ab
Adjust Gradle to JUnit 5
manticore-projects d5a6dca
Do not mark SpeedTest for concurrent execution
manticore-projects a9d0503
Remove unused imports
manticore-projects 6dfa05f
Adjust Gradle to JUnit 5
manticore-projects 8f0bfe6
Do not mark SpeedTest for concurrent execution
manticore-projects 5cd0974
Remove unused imports
manticore-projects 5f11d3f
Merge remote-tracking branch 'origin/master'
manticore-projects 3ab04b0
Merge https://github.com/JSQLParser/JSqlParser
manticore-projects de94651
Merge branch 'JSQLParser:master' into master
manticore-projects c76ae00
Adjust Gradle to JUnit 5
manticore-projects b4d111e
Do not mark SpeedTest for concurrent execution
manticore-projects 0a01f32
Remove unused imports
manticore-projects f55ab13
Adjust Gradle to JUnit 5
manticore-projects 884583d
Do not mark SpeedTest for concurrent execution
manticore-projects 50848ff
Remove unused imports
manticore-projects d30613a
Implement UnsupportedStatement
manticore-projects 1b925df
Merge remote-tracking branch 'manticore/master' into UnsupportedState…
manticore-projects 04e9b6e
Revert unintended changes of the test resources
manticore-projects 28f2dcf
Reformat BLOCK production
manticore-projects File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/net/sf/jsqlparser/statement/UnsupportedStatement.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/*- | ||
* #%L | ||
* JSQLParser library | ||
* %% | ||
* Copyright (C) 2004 - 2021 JSQLParser | ||
* %% | ||
* Dual licensed under GNU LGPL 2.1 or Apache License 2.0 | ||
* #L% | ||
*/ | ||
|
||
package net.sf.jsqlparser.statement; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** | ||
* | ||
* @author <a href="mailto:andreas@manticore-projects.com">Andreas Reichel</a> | ||
*/ | ||
|
||
public class UnsupportedStatement implements Statement { | ||
private List<String> declarations; | ||
|
||
public UnsupportedStatement(List<String> declarations) { | ||
this.declarations = Objects.requireNonNull(declarations, "The List of Tokens must not be null."); | ||
} | ||
|
||
@Override | ||
public void accept(StatementVisitor statementVisitor) { | ||
statementVisitor.visit(this); | ||
} | ||
|
||
@SuppressWarnings({"PMD.MissingBreakInSwitch", "PMD.SwitchStmtsShouldHaveDefault", "PMD.CyclomaticComplexity"}) | ||
public StringBuilder appendTo(StringBuilder builder) { | ||
int i=0; | ||
for (String s:declarations) { | ||
if (i>0) { | ||
builder.append(" "); | ||
} | ||
builder.append(s); | ||
i++; | ||
} | ||
return builder; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return appendTo(new StringBuilder()).toString(); | ||
} | ||
|
||
public boolean isEmpty() { | ||
return declarations.isEmpty(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I find your version much harder to read.