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

Parse error using vector/to_vector with asterisk in 2nd/3rd parameter #44

Open
PhilippSalvisberg opened this issue Jul 3, 2024 · 0 comments
Assignees
Labels
23.4 bug Something isn't working

Comments

@PhilippSalvisberg
Copy link
Collaborator

The following code works without parser error (generic function):

select vector('[0,1,1,0,0]', 5, int8);
select to_vector('[0,1,1,0,0]', 5, int8);

However, when using an asterisk in the 2nd or 3rd parameter a syntax error is produced by the db* CODECOP parser:

select vector('[0,1,1,0,0]', *, int8);
select vector('[0,1,1,0,0]', 5, *);
select vector('[0,1,1,0,0]', *, *);
select to_vector('[0,1,1,0,0]', *, int8);
select to_vector('[0,1,1,0,0]', 5, *);
select to_vector('[0,1,1,0,0]', *, *);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
23.4 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants