We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi
If "between and" go with convert function, the tools are not formatted correctly.
SELECT * FROM table WHERE 1=1 and date BETWEEN str_to_date('2001-01-01', '%Y-%M-%D') AND str_to_date('2001-12-01', '%Y-%M-%D') and 2=2
SELECT * FROM table WHERE 1 = 1 and date BETWEEN str_to_date('2001-01-01', '%Y-%M-%D') AND str_to_date('2001-12-01', '%Y-%M-%D') and 2 = 2
SELECT * FROM table WHERE date BETWEEN '2001-01-01' AND '2001-12-01'
The source code is only look behind 2.
private String formatNewlineReservedWord(Token token, String query) { if (Token.isAnd(token) && Token.isBetween(this.tokenLookBehind(2))) { return this.formatWithSpaces(token, query); } return this.addNewline(query) + this.equalizeWhitespace(this.show(token)) + " "; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
If "between and" go with convert function, the tools are not formatted correctly.
The source code is only look behind 2.
The text was updated successfully, but these errors were encountered: