[MDEV-29836] SHOW CREATE VIEW fails with ER_ILLEGAL_PARAMETER_DATA_TYPES2_FOR_OPERATION Created: 2022-10-20  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Data types, Views
Affects Version/s: 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Problem/Incident
is caused by MDEV-11692 Comparison data type aggregation for ... Closed

 Description   

Some time in 10.3, probably around MDEV-11692, comparison rules were strictened so much that it became impossible to see a definition of a view which invokes such a comparison.

create or replace table t (a int);
create or replace view v as select * from t where a < 1000;
create or replace table t (a point);
show create view v;
 
# Cleanup
drop view v;
drop table t;

10.3 3a62ff7e

mysqltest: At line 4: query 'show create view v' failed: 4078: Illegal parameter data types geometry and int for operation '<'

Obviously it's quite inconvenient, one needs to see the definition of a broken view in order to fix it.


Generated at Thu Feb 08 10:11:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.