mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
merging.
This commit is contained in:
@ -1014,6 +1014,14 @@ SET @a=0x00000000030000000100000000000000000000000000144000000000000014400000000
|
|||||||
SET @a=POLYFROMWKB(@a);
|
SET @a=POLYFROMWKB(@a);
|
||||||
SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440;
|
SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000000001840000000000000184000000000000014400000000000001440;
|
||||||
SET @a=POLYFROMWKB(@a);
|
SET @a=POLYFROMWKB(@a);
|
||||||
|
create table t1(a polygon NOT NULL)engine=myisam;
|
||||||
|
insert into t1 values (geomfromtext("point(0 1)"));
|
||||||
|
insert into t1 values (geomfromtext("point(1 0)"));
|
||||||
|
select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
|
||||||
|
p
|
||||||
|
NULL
|
||||||
|
NULL
|
||||||
|
drop table t1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
CREATE TABLE t1(
|
CREATE TABLE t1(
|
||||||
col0 BINARY NOT NULL,
|
col0 BINARY NOT NULL,
|
||||||
|
@ -747,6 +747,16 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000
|
|||||||
SET @a=POLYFROMWKB(@a);
|
SET @a=POLYFROMWKB(@a);
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug #57321 crashes and valgrind errors from spatial types
|
||||||
|
#
|
||||||
|
|
||||||
|
create table t1(a polygon NOT NULL)engine=myisam;
|
||||||
|
insert into t1 values (geomfromtext("point(0 1)"));
|
||||||
|
insert into t1 values (geomfromtext("point(1 0)"));
|
||||||
|
select * from (select polygon(t1.a) as p from t1 order by t1.a) d;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -181,6 +181,7 @@ public:
|
|||||||
String *val_str(String *);
|
String *val_str(String *);
|
||||||
void fix_length_and_dec()
|
void fix_length_and_dec()
|
||||||
{
|
{
|
||||||
|
Item_geometry_func::fix_length_and_dec();
|
||||||
for (unsigned int i= 0; i < arg_count; ++i)
|
for (unsigned int i= 0; i < arg_count; ++i)
|
||||||
{
|
{
|
||||||
if (args[i]->fixed && args[i]->field_type() != MYSQL_TYPE_GEOMETRY)
|
if (args[i]->fixed && args[i]->field_type() != MYSQL_TYPE_GEOMETRY)
|
||||||
|
Reference in New Issue
Block a user