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

[CBRD-24382] Fix segfault when target of CALL statement is not a stored procedure/function (#3770) #3784

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

hgryoo
Copy link
Member

@hgryoo hgryoo commented Aug 31, 2022

…ed procedure/function (CUBRID#3770)

http://jira.cubrid.org/browse/CBRD-24382

If CALL stmt is executed with a built-in function, a segmentation fault occurs. Referring to the SQL standard and the CUBRID manual, only a stored procedure can be called in the CALL statement, so an appropriate error should be returned.

- In parsing, If generic_function is not a stored procedure/function, the parsed node type of call_stmt is not PT_METHOD_CALL. I've set an error in the case.
- For the error message, MSGCAT_SEMANTIC_IS_NOT_A is already defined in the parser message catalog.
@hgryoo hgryoo self-assigned this Aug 31, 2022
@hgryoo hgryoo marked this pull request as ready for review August 31, 2022 11:26
@hgryoo hgryoo requested a review from beyondykk9 August 31, 2022 11:26
@mhoh3963 mhoh3963 merged commit 6930948 into CUBRID:release/11.0 Oct 13, 2022
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

Successfully merging this pull request may close these issues.

3 participants