Skip to content

[Bug]: Incorrect result for select version() #13488

Closed

Description

@DanielZhangQD

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): 1.0-dev nightly-70b86219
- Hardware parameters:
- OS type:
- Others:

Actual Behavior

Connect to MO:

  • Do not use any database, the version is correct
  • Use the default databases, e.g. system, the version is correct
  • Create a new database, and use it, the version is incorrect
MySQL [(none)]> select version();
+-------------------------+
| version()               |
+-------------------------+
| 8.0.30-MatrixOne-v1.0.0 |
+-------------------------+
1 row in set (0.00 sec)

MySQL [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| mo_catalog         |
| system             |
| system_metrics     |
| information_schema |
| mysql              |
| test_db            |
+--------------------+
6 rows in set (0.08 sec)

MySQL [(none)]> use system;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MySQL [system]> select version();
+-------------------------+
| version()               |
+-------------------------+
| 8.0.30-MatrixOne-v1.0.0 |
+-------------------------+
1 row in set (0.01 sec)

MySQL [system]> use mo_catalog;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MySQL [mo_catalog]> select version();
+-------------------------+
| version()               |
+-------------------------+
| 8.0.30-MatrixOne-v1.0.0 |
+-------------------------+
1 row in set (0.00 sec)

MySQL [mo_catalog]> use mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MySQL [mysql]> select version();
+-------------------------+
| version()               |
+-------------------------+
| 8.0.30-MatrixOne-v1.0.0 |
+-------------------------+
1 row in set (0.00 sec)

MySQL [mysql]> create database test;
Query OK, 1 row affected (0.01 sec)

MySQL [mysql]> use test;
Database changed
MySQL [test]> select version();
+-----------+
| version() |
+-----------+
| 0.7       |
+-----------+
1 row in set (0.00 sec)

Expected Behavior

Return the correct version in all cases

Steps to Reproduce

See detail in `Actual Behavior`

Additional information

No response

Activity

  1. added
    kind/bug
    severity/s0
    on Dec 15, 2023
  2. added this to the 1.0.0 milestone on Dec 15, 2023
  3. added
    severity/s1
    and removed
    severity/s0
    on Dec 15, 2023
  4. modified the milestones: 1.0.0, 1.2.0 on Dec 15, 2023
  5. 28 remaining items

  6. YANGGMM commented on Aug 15, 2024

    @YANGGMM
    Contributor

    还在看

  7. YANGGMM commented on Aug 20, 2024

    @YANGGMM
    Contributor

    还在看

  8. YANGGMM commented on Aug 23, 2024

    @YANGGMM
    Contributor

    还在看

  9. YANGGMM commented on Aug 28, 2024

    @YANGGMM
    Contributor

    有空看

  10. YANGGMM commented on Sep 2, 2024

    @YANGGMM
    Contributor

    有空看

  11. YANGGMM commented on Sep 4, 2024

    @YANGGMM
    Contributor

    还在看

  12. YANGGMM commented on Sep 9, 2024

    @YANGGMM
    Contributor

    正在做

  13. YANGGMM commented on Sep 13, 2024

    @YANGGMM
    Contributor

    不知道是否需要合入1.2.3

  14. YANGGMM commented on Sep 18, 2024

    @YANGGMM
    Contributor

    不知道是否需要合入1.2.3

  15. YANGGMM commented on Sep 19, 2024

    @YANGGMM
    Contributor

    fixed,plz test @aressu1985

  16. Songxx-7 commented on Oct 31, 2024

    @Songxx-7
    Contributor

    mysql> select version();
    +-------------------------+
    | version() |
    +-------------------------+
    | 8.0.30-MatrixOne-v1.2.3 |
    +-------------------------+
    1 row in set (0.00 sec)

    mysql> select node_id from processlist() a where conn_id=connection_id();
    +--------------------------------------+
    | node_id |
    +--------------------------------------+
    | dd1dccb4-4d3c-41f8-b482-5251dc7a41bf |
    +--------------------------------------+
    1 row in set (0.00 sec)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions