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

Unable to Parse QueryExecute Functions #49

Closed
jerronjames opened this issue Apr 23, 2015 · 3 comments
Closed

Unable to Parse QueryExecute Functions #49

jerronjames opened this issue Apr 23, 2015 · 3 comments

Comments

@jerronjames
Copy link
Contributor

                var result = QueryExecute("
            SELECT info_card_id, document_num, revision_nm, title_nm
            FROM tdc_doc_infocard
            WHERE info_card_id = :sourceTemplateNum
            ORDER BY UPPER(document_num) ASC, revision_seq DESC
        ", { sourceTemplateNum = { value="#sourceTemplateNum#", cfsqltype="cf_sql_varchar" }});

Is reporting:

decompile: [ public function getSourceTemplates(required sourceTemplateNum) {, var result = QueryExecute(' , SELECT info_card_id, document_num, revision_nm, title_nm , FROM tdc_doc_infocard , WHERE info_card_id = :sourceTemplateNum , ORDER BY UPPER(document_num) ASC, revision_seq DESC , ', {sourceTemplateNum:{value:'#sourceTemplateNum#',cfsqltype:'cf_sql_varchar'}}); return result;, }] { var result = QueryExecute(' SELECT info_card_id, document_num, revision_nm, title_nm FROM tdc_doc_infocard WHERE info_card_id = :sourceTemplateNum ORDER BY UPPER(document_num) ASC, revision_seq DESC ', {sourceTemplateNum:{value:'#sourceTemplateNum#',cfsqltype:'cf_sql_varchar'}}); return result; }

ryaneberly added a commit to cfparser/cfparser that referenced this issue Apr 23, 2015
@ryaneberly
Copy link
Contributor

the parser seems to get it ok.

Is it an issue with the CFLint objects and the decompile method?

@ryaneberly
Copy link
Contributor

@jerronjames, That's from the FunctionLengthChecker isn't it?
it's printing a decompile of the function body twice.

@jerronjames
Copy link
Contributor Author

Indeed it is with the function length checker. I just excluded it, and it ran fine. Guess I’ll be working on that next week!

From: ryaneberly [mailto:notifications@github.com]
Sent: Tuesday, April 28, 2015 3:05 PM
To: cflint/CFLint
Cc: Jerron James
Subject: Re: [CFLint] Unable to Parse QueryExecute Functions (#49)

@jerronjameshttps://github.com/jerronjames, That's from the FunctionLengthChecker isn't it?
it's printing a decompile of the function body twice.


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-97206725.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants