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
79fb335f
Commit
79fb335f
authored
Apr 18, 2002
by
bar@gw.udmsearch.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for AsText() spatial function
parent
64943e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
sql/item_strfunc.cc
sql/item_strfunc.cc
+8
-4
No files found.
sql/item_strfunc.cc
View file @
79fb335f
...
...
@@ -2128,12 +2128,16 @@ String *Item_func_as_text::val_str(String *str)
{
String
*
wkt
=
args
[
0
]
->
val_str
(
str
);
Geometry
geom
;
str
->
length
(
0
);
if
((
null_value
=
(
args
[
0
]
->
null_value
||
geom
.
create_from_wkb
(
wkt
->
ptr
(),
wkt
->
length
())
||
geom
.
as_wkt
(
str
))))
geom
.
create_from_wkb
(
wkt
->
ptr
(),
wkt
->
length
()))))
return
0
;
str
->
length
(
0
);
if
((
null_value
=
geom
.
as_wkt
(
str
)))
return
0
;
return
str
;
}
...
...
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