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
de596e89
Commit
de596e89
authored
Jan 13, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for spatial objects
parent
8e6a4c62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-7
No files found.
sql/item_strfunc.cc
View file @
de596e89
...
...
@@ -2771,10 +2771,8 @@ String *Item_func_spatial_collection::val_str(String *str)
uint32
n_points
;
double
x1
,
y1
,
x2
,
y2
;
if
(
len
<
WKB_HEADER_SIZE
+
4
+
8
+
8
)
if
(
len
<
4
+
2
*
POINT_DATA_SIZE
)
goto
ret
;
data
+=
WKB_HEADER_SIZE
;
len
-=
WKB_HEADER_SIZE
;
uint32
llen
=
len
;
const
char
*
ldata
=
data
;
...
...
@@ -2786,10 +2784,6 @@ String *Item_func_spatial_collection::val_str(String *str)
float8get
(
y1
,
data
);
data
+=
8
;
len
-=
4
+
8
+
8
;
if
(
len
<
n_points
*
POINT_DATA_SIZE
)
goto
ret
;
data
+=
(
n_points
-
2
)
*
POINT_DATA_SIZE
;
float8get
(
x2
,
data
);
...
...
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