Skip to content

Always 0 for unexisting @@variables #3109

@donhardman

Description

@donhardman

Bug Description:

There is an issue that blocks a task to be done: manticoresoftware/manticoresearch-buddy#388

When we do a select of any variable that does not exist at all, we return 0, which looks incorrect.

Let's return an error that this variable does not exist, because setting 0 as int for everything is not a good approach. So when we return an error here, we will be able to process such cases with Buddy.

mysql> SELECT @@tx_isolation_eahhahfefhehfehf;
+---------------------------------+
| @@tx_isolation_eahhahfefhehfehf |
+---------------------------------+
|                               0 |
+---------------------------------+
mysql>

Manticore Search Version:

Latest dev

Operating System Version:

Ubuntu

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions