Skip to content

Conversation

@LucaCappelletti94
Copy link
Contributor

Enables parsing of PostgreSQL C language functions that specify both object file and link symbol in the AS clause.

Example

CREATE FUNCTION cas_in(input cstring) RETURNS cas
LANGUAGE c
AS 'MODULE_PATHNAME', 'cas_in_wrapper';

Fixes #2093

Comment on lines +10248 to +10250
let mut exprs = vec![first_expr];
exprs.extend(self.parse_comma_separated(parse_string_expr)?);
Ok(Expr::Tuple(exprs))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, does wrapping this in a Tuple not include a parenthesis (first_expr, second_expr) when displaying the AST? wondering if/how we worked around that somehow in this case

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.

Support PostgreSQL CREATE FUNCTION ... AS 'lib', 'symbol' syntax

2 participants