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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
75c2a822
Commit
75c2a822
authored
Jan 12, 2011
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging.
parents
7aa99960
33c78e32
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 @
75c2a822
...
@@ -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 @
75c2a822
...
@@ -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 @
75c2a822
...
@@ -181,6 +181,7 @@ public:
...
@@ -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
)
...
...
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