Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL)
-
None
Description
This script:
SET NAMES latin1; |
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a TEXT CHARACTER SET gbk); |
INSERT INTO t1 VALUES (0xEE5D); |
SELECT a<> 0xEE5D AS a FROM t1; |
correctly returns one row:
+------+
|
| a |
|
+------+
|
| 0 |
|
+------+
|
Now if I put the same SELECT into a VIEW and query it:
DROP VIEW IF EXISTS v1; |
CREATE VIEW v1 AS SELECT a<> 0xEE5D AS a FROM t1; |
SELECT * FROM v1; |
it returns an error:
ERROR 1267 (HY000): Illegal mix of collations (gbk_chinese_ci,IMPLICIT) and (latin1_swedish_ci,COERCIBLE) for operation '<>'
|