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

Incorrect behaviour with reserved words in CREATE ... LIKE ... #324

Open
5 tasks
donhardman opened this issue Jul 23, 2024 · 0 comments
Open
5 tasks

Incorrect behaviour with reserved words in CREATE ... LIKE ... #324

donhardman opened this issue Jul 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working est::size_S

Comments

@donhardman
Copy link
Contributor

Bug Description:

When we use a word that's a common reserved word, it seems our parser doesn't recognize it and can't parse it properly.

The fix here is that if we can't understand and need to escape this type of table name, we should send a clearer error message, not just "unexpected tablename," which doesn't really explain what's wrong.

Here's a Minimal Reproducible Example (MRE):

mysql> create table comment;
mysql> create table comment_1 like comment with data;
ERROR 1064 (42000): P03: syntax error, unexpected tablename, expecting $end near 'with data'
mysql> create table comment_1 like `comment` with data;
mysql>

Manticore Search Version:

Latest dev version

Operating System Version:

Ubuntu Jammy

Have you tried the latest development version?

Yes

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation reviewed
  • Changelog updated
@donhardman donhardman added the bug Something isn't working label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working est::size_S
Projects
None yet
Development

No branches or pull requests

2 participants