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

ColumnReference not quoted #78

Closed
jakobbraun opened this issue Jun 18, 2020 · 0 comments · Fixed by #79
Closed

ColumnReference not quoted #78

jakobbraun opened this issue Jun 18, 2020 · 0 comments · Fixed by #79
Assignees
Labels
bug Unwanted / harmful behavior

Comments

@jakobbraun
Copy link
Contributor

@Test
    void testQuotedIdentifiers() {
        final StringRendererConfig config = StringRendererConfig.builder().quoteIdentifiers(true).build();
        assertThat(this.select.where(eq(ExpressionTerm.stringLiteral("foo"), ColumnReference.of("test"))),
                rendersWithConfigTo(config, "SELECT * FROM \"person\" WHERE 'foo' = \"test\""));
    }
Expected: SELECT * FROM "person" WHERE 'foo' = "test"
     but: SELECT * FROM "person" WHERE 'foo' = test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants