Skip to content

postgresql TRIM not fully supported? #868

Description

@localdevjs
create table test1 as (
    select 
		aaaa,
		trim(BOTH from unnest(string_to_array(initcap(bbbbb),';'))) as ccccc
    from mytable
);;

That trim function there works in postgresql, but throws an error in the JSQLParser. Stack trace:

	at net.sf.jsqlparser.parser.CCJSqlParserUtil.parseStatements(CCJSqlParserUtil.java:137)
	at com.shonetic.esquel.analyzer.tester.run(tester.java:30)
	at com.shonetic.util2.ScriptClass.doMain(ScriptClass.java:240)
	at com.shonetic.esquel.analyzer.tester.main(tester.java:36)
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "(" "("
    at line 4, column 7.

Activity

  1. added a commit that references this issue on Apr 30, 2023
    3a27a9d
  2. added a commit that references this issue on Jun 15, 2023
    a815f5f
  3. added a commit that references this issue on Jun 27, 2023
    c79dfff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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