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
d29557cb
Commit
d29557cb
authored
Apr 04, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.r18.ru:/usr/home/ram/work/mysql-4.1.sp
parents
be27b236
7a856411
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
sql/item_strfunc.cc
sql/item_strfunc.cc
+9
-8
No files found.
sql/item_strfunc.cc
View file @
d29557cb
...
@@ -2624,20 +2624,21 @@ String *Item_func_geometry_type::val_str(String *str)
...
@@ -2624,20 +2624,21 @@ String *Item_func_geometry_type::val_str(String *str)
String
*
Item_func_envelope
::
val_str
(
String
*
str
)
String
*
Item_func_envelope
::
val_str
(
String
*
str
)
{
{
String
*
res
=
args
[
0
]
->
val_str
(
str
);
String
arg_val
;
String
*
swkb
=
args
[
0
]
->
val_str
(
&
arg_val
);
Geometry
geom
;
Geometry
geom
;
if
((
null_value
=
args
[
0
]
->
null_value
||
if
((
null_value
=
args
[
0
]
->
null_value
||
geom
.
create_from_wkb
(
res
->
ptr
()
+
SRID_SIZE
,
geom
.
create_from_wkb
(
swkb
->
ptr
()
+
SRID_SIZE
,
res
->
length
()
-
SRID_SIZE
)))
swkb
->
length
()
-
SRID_SIZE
)))
return
0
;
return
0
;
uint32
srid
=
uint4korr
(
res
->
ptr
());
uint32
srid
=
uint4korr
(
swkb
->
ptr
());
if
(
res
->
reserve
(
SRID_SIZE
,
512
))
str
->
length
(
0
);
if
(
str
->
reserve
(
SRID_SIZE
,
512
))
return
0
;
return
0
;
res
->
length
(
0
);
str
->
q_append
(
srid
);
res
->
q_append
(
srid
);
return
(
null_value
=
geom
.
envelope
(
str
))
?
0
:
str
;
return
(
null_value
=
geom
.
envelope
(
res
))
?
0
:
res
;
}
}
...
...
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