Skip to content
This repository has been 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 opened this issue Jan 17, 2019 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@ajnavarro
Copy link
Contributor

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.

@ajnavarro ajnavarro added bug Something isn't working enhancement New feature or request labels Jan 17, 2019
@erizocosmico erizocosmico self-assigned this Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants