Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.23.0
Description
Printing a query with the following parameters gives a result
SELECT *FROM TAB
Note: no space between "*" and "FROM".
val parser = SqlParser.create("", SqlParser.configBuilder() .setCaseSensitive(false) .setParserFactory(SqlParserImpl.FACTORY) .setQuoting(Quoting.DOUBLE_QUOTE) .build()) val query = parser.parseQuery("select * from tab") val actual = query.toSqlString { c: SqlWriterConfig -> c.withDialect(PostgresqlSqlDialect.DEFAULT) .withAlwaysUseParentheses(false) .withSelectListItemsOnSeparateLines(false) .withCaseClausesOnNewLines(false) .withQuoteAllIdentifiers(false) .withIndentation(0) .withClauseStartsLine(false) .withFromFolding(SqlWriterConfig.LineFolding.WIDE) .withSelectFolding(SqlWriterConfig.LineFolding.WIDE) .withLineFolding(SqlWriterConfig.LineFolding.WIDE) }.sql println(actual)
Attachments
Issue Links
- links to