Skip to content
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

FIX: SimpleSQLGrammar quote parsing regression #5700

Merged
Prev Previous commit
Next Next commit
Add test output to help with future debugging
  • Loading branch information
Jason Lyle committed Mar 16, 2024
commit c40ac8704a41215810e6cccd5e39f95975129a1c
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ class SimpleSqlGrammarTest extends Specification {
@Unroll
def test() {
when:
def tokenManager = new SimpleSqlGrammarTokenManager(new SimpleCharStream(new StringReader(input)));
def tokenManager = new SimpleSqlGrammarTokenManager(new SimpleCharStream(new StringReader(input)))
def grammar = new SimpleSqlGrammar(tokenManager)

def tokens = new ArrayList<String>()
Token token
System.out.println("----------------------------------------------------------------")
System.out.println("'" + input + "'")
while ((token = grammar.getNextToken()).kind != SimpleSqlGrammarConstants.EOF) {
System.out.println(" " + String.format('%1$-32s', SimpleSqlGrammarConstants.tokenImage[token.kind]) + ": '" + token.toString() + "'")
tokens.add(token.toString())
}

Expand Down
Loading