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

table names 4 characters long are erroneously parsed as table ids #76

Open
jefferis opened this issue Jan 16, 2023 · 2 comments
Open

table names 4 characters long are erroneously parsed as table ids #76

jefferis opened this issue Jan 16, 2023 · 2 comments

Comments

@jefferis
Copy link

jefferis commented Jan 16, 2023

2.6.3 has introduced a bug that causes table names that match the regular expression r'^[-0-9a-zA-Z]{4}$' in the new like_table_id() function to be parsed as ids rather than tables, which in turns leads to list_rows giving errors about not finding the requested table.

cc @schlegelp who may be able to give a full example.

@freeplant
Copy link
Contributor

You may re-test it with version 3.4 server after it is released. In version 3.4, the server will use the parameter both as table_id and table_name to find a table.

@schlegelp
Copy link

I see. Would you be open to a PR that changes the behaviour to only use like_table_id if the server is version 3.4.0 or higher?

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

3 participants