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

Crash if I use an SQL with a reserved word #2124

Closed
8 tasks done
usatenko opened this issue May 2, 2024 · 4 comments
Closed
8 tasks done

Crash if I use an SQL with a reserved word #2124

usatenko opened this issue May 2, 2024 · 4 comments
Assignees
Labels

Comments

@usatenko
Copy link

usatenko commented May 2, 2024

Bug Description:

SELECT MIN(ver) AS id FROM table LIMIT 1

in case I use the reserved word "id" in AS ... statement, it crashes manticore.

Manticore Search Version:

6.2.12 dc5144d@230822 (columnar 2.2.4 5aec342@230822) (secondary 2.2.4 5aec342@230822) git branch manticore-6.2.12...origin/manticore-6.2.12

Operating System Version:

6.7.12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1 (2024-04-24) x86_64 GNU/Linux

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.

  • Task estimated
  • Specification created, reviewed, and approved
  • Implementation completed
  • Tests developed
  • Documentation updated
  • Documentation proofread
  • Changelog updated
@usatenko usatenko added the bug label May 2, 2024
@sanikolaev
Copy link
Collaborator

Thanks. Reproduced in the latest dev version.

MRE

mysql> drop table if exists t; create table t(a int); SELECT MIN(a) AS id FROM t LIMIT 1;
--------------
drop table if exists t
--------------

Query OK, 0 rows affected (0.00 sec)

--------------
create table t(a int)
--------------

Query OK, 0 rows affected (0.01 sec)

--------------
SELECT MIN(a) AS id FROM t LIMIT 1
--------------

ERROR 2013 (HY000): Lost connection to MySQL server during query
No connection. Trying to reconnect...
ERROR 2003 (HY000): Can't connect to MySQL server on '0:9306' (61)
ERROR:
Can't connect to the server

@tomatolog
Copy link
Contributor

the crash was fixed at 8c6cec3

You need to use package from the dev repository to get this crash fixed

@tomatolog tomatolog reopened this May 3, 2024
@usatenko
Copy link
Author

usatenko commented May 3, 2024

thank you

@sanikolaev
Copy link
Collaborator

Updated the changelog. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants