[MDEV-27938] Error on execution 'select from' view with 'GROUP BY LEFT('2018-08-24', 100) ' Created: 2022-02-24  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
Fix Version/s: 10.11

Type: Bug Priority: Major
Reporter: Lena Startseva Assignee: Oleksandr Byelkin
Resolution: Unresolved Votes: 0
Labels: view-protocol

Issue Links:
PartOf
is part of MDEV-27691 make working view-protocol Open

 Description   

Test:

CREATE OR REPLACE VIEW v1 AS SELECT DISTINCT BIT_OR(100) OVER () FROM DUAL 
GROUP BY LEFT('2018-08-24', 100)  order by 1+2;
SELECT * FROM v1;
DROP VIEW v1;

Error:

mysqltest: At line 3: query 'SELECT * FROM v1' failed: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'group by left('2018-08-24',100) order by 1 + 2' at line 1

After fix this bug view-protocol should be enable in tests: main.win (search by issue number)


Generated at Thu Feb 08 09:56:46 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.