mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-21959 GIS error message doesn't show the wrong value, just the type.
Error message now shows the whole value.
This commit is contained in:
@ -1038,9 +1038,9 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000
|
||||
SET @a=ST_POLYFROMWKB(@a);
|
||||
create table t1(a polygon NOT NULL)engine=InnoDB;
|
||||
insert into t1 values (ST_geomfromtext("point(0 1)"));
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT(0 1)' for column `test`.`t1`.`a` at row 1
|
||||
insert into t1 values (ST_geomfromtext("point(1 0)"));
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT(1 0)' for column `test`.`t1`.`a` at row 1
|
||||
select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
|
||||
p
|
||||
drop table t1;
|
||||
|
@ -1034,9 +1034,9 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000
|
||||
SET @a=ST_POLYFROMWKB(@a);
|
||||
create table t1(a polygon NOT NULL)engine=innodb;
|
||||
insert into t1 values (ST_geomfromtext("point(0 1)"));
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT(0 1)' for column `test`.`t1`.`a` at row 1
|
||||
insert into t1 values (ST_geomfromtext("point(1 0)"));
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT' for column `test`.`t1`.`a` at row 1
|
||||
ERROR 22007: Incorrect POLYGON value: 'POINT(1 0)' for column `test`.`t1`.`a` at row 1
|
||||
select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
|
||||
p
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user