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

Issues with parsing function syntax in MySQL #3405

Open
rzseattle opened this issue May 29, 2024 · 0 comments
Open

Issues with parsing function syntax in MySQL #3405

rzseattle opened this issue May 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rzseattle
Copy link

Version

1.26.0

What happened?

Parse query file without errors and generate proper structure

Relevant log output

2024/05/29 11:55:18 dolphin.convert: Unknown node type *ast.TrimDirectionExpr
# package 
query.sql:2:12: function trim(unknown, unknown, unknown) does not exist

Database schema

CREATE TABLE authors (
  id   int  PRIMARY KEY,
  name text      NOT NULL,
  bio  text
);

SQL queries

SELECT id, trim(LEADING '0' FROM trim(name)) as name FROM authors

Configuration

{
  "version": "2",
  "sql": [{
    "schema": "schema.sql",
    "queries": "query.sql",
    "engine": "mysql",
    "gen": {
      "go": {
        "out": "db"
      }
    }
  }]
}

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

@rzseattle rzseattle added bug Something isn't working triage New issues that hasn't been reviewed labels May 29, 2024
@kyleconroy kyleconroy removed the triage New issues that hasn't been reviewed label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants