Skip to content

[Bug]: system table “error_info”,Use SELECT,Return panic #5901

@goodMan-code

Description

@goodMan-code

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Environment

- Version or commit-id (e.g. v0.1.0 or 8b23a93):
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Query stmt is :
SHOW DATABASES;
USE system;

The problematic SQL stmt is :
SHOW COLUMNS FROM error_info;
SELECT * FROM error_info LIMIT 1;
SELECT COUNT() FROM error_info;
SELECT COUNT(
) FROM (SELECT * FROM error_info LIMIT 10) AS temp;
SELECT COUNT(0) FROM (SELECT * FROM error_info LIMIT 10) AS temp;
SELECT COUNT('') FROM (SELECT * FROM error_info LIMIT 10) AS temp;
SELECT COUNT(NULL) FROM (SELECT * FROM error_info LIMIT 10) AS temp;
(SELECT * FROM error_info LIMIT 1) UNION (SELECT * FROM error_info LIMIT 1);

These SQL stmt ALL get the panic return

Expected Behavior

No response

Steps to Reproduce

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions