Skip to content

[bug]syntext error when parsing mysql:query #83

@johnzeng

Description

@johnzeng

I happened to find out that the refactor doesn't work for my sql wrapper module, so I did some debugging, and I find out that if the file contains the following codes, the parser will results in error like error syntax before query:

case mysql:query(xxx,xxx,xxx) of
  .....

After some more debug, I find out that wrangler has a function called wrangler_syntax:query_expr, and i know that there is some syntax called query syntax for Mnesia, so I believe you are making some assertion that a query must be the begin of query syntax ....

This should be a bug because the mysql mode is working fine so the syntax should be ok for erlang compiler.

Here is the mysql driver. You can see it's using query as a main API.

I am trying to create a patch, but the syntax file is a little complicate ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions