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
5a107871
Commit
5a107871
authored
Jan 08, 2003
by
hf@deer.mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@work.mysql.com:/home/bk/mysql-4.1
into deer.mysql.r18.ru:/home/hf/work/mysql-4.1.clean
parents
a05b6e24
bd5fa8d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
sql/item_strfunc.cc
sql/item_strfunc.cc
+6
-4
No files found.
sql/item_strfunc.cc
View file @
5a107871
...
...
@@ -2666,6 +2666,9 @@ Functions to concatinate various spatial objects
String
*
Item_func_point
::
val_str
(
String
*
str
)
{
double
x
=
args
[
0
]
->
val
();
double
y
=
args
[
1
]
->
val
();
if
(
(
null_value
=
(
args
[
0
]
->
null_value
||
args
[
1
]
->
null_value
||
str
->
realloc
(
1
+
4
+
8
+
8
))))
...
...
@@ -2674,8 +2677,8 @@ String *Item_func_point::val_str(String *str)
str
->
length
(
0
);
str
->
q_append
((
char
)
Geometry
::
wkbNDR
);
str
->
q_append
((
uint32
)
Geometry
::
wkbPoint
);
str
->
q_append
(
(
double
)
args
[
0
]
->
val
()
);
str
->
q_append
(
(
double
)
args
[
1
]
->
val
()
);
str
->
q_append
(
x
);
str
->
q_append
(
y
);
return
str
;
}
...
...
@@ -2707,11 +2710,10 @@ String *Item_func_spatial_collection::val_str(String *str)
for
(
i
=
0
;
i
<
arg_count
;
++
i
)
{
String
*
res
=
args
[
i
]
->
val_str
(
&
arg_value
);
if
(
args
[
i
]
->
null_value
)
goto
ret
;
String
*
res
=
args
[
i
]
->
val_str
(
&
arg_value
);
if
(
coll_type
==
Geometry
::
wkbGeometryCollection
)
{
/*
...
...
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