Skip to content

ERROR 1054 (42S22): Unknown column '1' in 'where clause' #35031

@jackysp

Description

@jackysp

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

CREATE TABLE `t` (

  `status` int(11) DEFAULT NULL

) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

mysql> select * from t where t. status = 1;

ERROR 1054 (42S22): Unknown column '1' in 'where clause'

mysql> select * from t where t.status = 1;

Empty set (0.01 sec)

2. What did you expect to see? (Required)

No error.

3. What did you see instead (Required)

Error.

4. What is your TiDB version? (Required)

8acd5c8 and above.

Metadata

Metadata

Assignees

Labels

affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.severity/moderatesig/diagnosisSIG: Diagnosistype/bugThe issue is confirmed as a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions