Skip to content

Redshift notation for SET is not supported #1708

Closed
@zaza

Description

@zaza

In Redshift the syntax for SET statements is SET x TO y, for example: SET enable_case_sensitive_identifier to true

This format is not supported and fails with

net.sf.jsqlparser.JSQLParserException: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "true" "TRUE"
    at line 1, column 41.

Was expecting one of:

    "&"
    ","
    "::"
    ";"
    "<<"
    ">>"
    "["
    "^"
    "|"
    <EOF>

	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatement(CCJSqlParserUtil.java:263)
	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parse(CCJSqlParserUtil.java:81)
	at net.sf.jsqlparser.test.TestUtils.assertSqlCanBeParsedAndDeparsed(TestUtils.java:94)
	at net.sf.jsqlparser.test.TestUtils.assertSqlCanBeParsedAndDeparsed(TestUtils.java:81)
	at net.sf.jsqlparser.test.TestUtils.assertSqlCanBeParsedAndDeparsed(TestUtils.java:67)
	at net.sf.jsqlparser.statement.SetStatementTest.setTo(SetStatementTest.java:76)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions