Skip to content
This repository was archived by the owner on Jan 28, 2021. It is now read-only.
This repository was archived by the owner on Jan 28, 2021. It is now read-only.

Improve Function invalid argument number error specifying the affected function name #591

Closed
@ajnavarro

Description

@ajnavarro

The following query

select 
    language(blob_content, file_path) as lang, 
    uast_extract(
        uast_xpath(
            uast_xpath(
                uast_mode('annotated', blob_content, lang)
               '//InfixExpression[@role="Add" and @role="Binary" and @role="Operator"]'
            ),
            "//String[@internalRole='leftOperand']"),
            "Value"
        ) as result 
from refs 
NATURAL JOIN commits 
NATURAL JOIN commit_files 
NATURAL JOIN files 
where lang != '' limit 100;

Is failing with ERROR 1105 (HY000): unknown error: expecting 2 arguments for calling this function, 1 received

We should specify the function name on the error at least.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions