Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bbe2eff0
Commit
bbe2eff0
authored
Jan 12, 2011
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging.
parents
511a494c
8b5db960
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
+19
-0
mysql-test/r/gis.result
mysql-test/r/gis.result
+8
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+10
-0
sql/item_geofunc.h
sql/item_geofunc.h
+1
-0
No files found.
mysql-test/r/gis.result
View file @
bbe2eff0
...
@@ -1014,6 +1014,14 @@ SET @a=0x00000000030000000100000000000000000000000000144000000000000014400000000
...
@@ -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,
...
...
mysql-test/t/gis.test
View file @
bbe2eff0
...
@@ -747,6 +747,16 @@ SET @a=0x00000000030000000000000000000000000000000000144000000000000014400000000
...
@@ -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
#
#
...
...
sql/item_geofunc.h
View file @
bbe2eff0
...
@@ -181,6 +181,7 @@ class Item_func_spatial_collection: public Item_geometry_func
...
@@ -181,6 +181,7 @@ class Item_func_spatial_collection: public Item_geometry_func
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment