-
Notifications
You must be signed in to change notification settings - Fork 2
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
Upgrading libraries, mainly the JSqlParser, to support more queries out of the box. #41
Conversation
import net.sf.jsqlparser.JSQLParserException; | ||
import net.sf.jsqlparser.parser.CCJSqlParser; | ||
import net.sf.jsqlparser.parser.StringProvider; | ||
import net.sf.jsqlparser.statement.Statements; | ||
|
||
public class SqlParser { | ||
|
||
/* |
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.
New version supports the queries we tried to modify.
@@ -120,18 +127,26 @@ protected ParsedQuery parseSql(String sql, TwContext context) { | |||
return new ParsedQuery(); | |||
} | |||
|
|||
ParsedQuery result = new ParsedQuery(); | |||
long startTimeMs = System.currentTimeMillis(); | |||
var result = new ParsedQuery(); |
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.
Personally I don't see how using var
here makes it better. long
vs var
, ParsedQuery
vs var
. In this case using var
hurts the readability more in my opinion.
} | ||
} | ||
|
||
for (Statement stmt : stmts) { |
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.
Line 135:
for (var stmt : stmts) {
Line 141:
for (Statement stmt : stmts) {
var vs proper class name.
/wise-bot run-action sync-codeowners |
Your CODEOWNERS or the
You have more info in the docs |
🟢 sync-codeowners action completed with successful result. |
Context
Upgrading libraries, mainly the JSqlParser, to support more queries out of the box.
Checklist