Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL)
-
None
Description
According standard "If a <view column list> is" not "specified ... the <column name>s of the view are the <column name>s of the table specified by the <query expression>"
But:
If column name less or equal 64 symbols is everything Ok:
CREATE OR REPLACE VIEW v2 AS SELECT 111;
|
TABLE_SCHEMA TABLE_NAME COLUMN_NAME
|
test v2 111
|
But if column name more than 64 symbols the column name changes to "Name_exp_1"
CREATE OR REPLACE VIEW v1 AS SELECT 11111111111111111111111111111111111111111111111111111111111111111;
|
TABLE_SCHEMA TABLE_NAME COLUMN_NAME
|
test v1 Name_exp_1
|
Also it is impossible to set column name more than 64 symbols:
mysqltest: At line 6: query 'CREATE OR REPLACE VIEW v2 AS SELECT 111 as a2222222222222222222222222222222222222222222222222222222222222222' failed: 1166: Incorrect column name 'a2222222222222222222222222222222222222222222222222222222222222222'
|
After fix this bug view-protocol should be enable in tests: main.ctype_ldml, main.date_formats, main.order_by (possible), main.alias
Attachments
Issue Links
- is part of
-
MDEV-27691 make working view-protocol
- Open
- relates to
-
MDEV-32119 CTE table is created with wrong column name if column name > 64 symbols
- Open
-
MDEV-32454 JSON test has problem in view protocol
- Closed
-
MDEV-32456 incorrect result of gis function in view protocol
- Closed
-
MDEV-32461 types changed in view protocol in cast.test
- Closed
-
MDEV-32465 dyncol changes under view protocol
- Closed