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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
040e520d
Commit
040e520d
authored
Sep 28, 2007
by
dkatz@damien-katzs-computer.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #29772 Error compiling with option --without-geometry
Added #ifdef HAVE_SPATIAL around geometry related code.
parent
f4b671d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sql/item.cc
sql/item.cc
+4
-0
No files found.
sql/item.cc
View file @
040e520d
...
...
@@ -4357,12 +4357,14 @@ Field *Item::tmp_table_field_from_field_type(TABLE *table)
return
new
Field_blob
(
max_length
,
maybe_null
,
name
,
table
,
collation
.
collation
);
break
;
// Blob handled outside of case
#ifdef HAVE_SPATIAL
case
MYSQL_TYPE_GEOMETRY
:
return
new
Field_geom
(
max_length
,
maybe_null
,
name
,
table
,
(
Field
::
geometry_type
)
((
type
()
==
Item
::
TYPE_HOLDER
)
?
((
Item_type_holder
*
)
this
)
->
get_geometry_type
()
:
((
Item_geometry_func
*
)
this
)
->
get_geometry_type
()));
#endif
/* HAVE_SPATIAL */
}
}
...
...
@@ -6482,10 +6484,12 @@ Item_type_holder::Item_type_holder(THD *thd, Item *item)
if
(
Field
::
result_merge_type
(
fld_type
)
==
INT_RESULT
)
decimals
=
0
;
prev_decimal_int_part
=
item
->
decimal_int_part
();
#ifdef HAVE_SPATIAL
if
(
item
->
field_type
()
==
MYSQL_TYPE_GEOMETRY
)
geometry_type
=
(
item
->
type
()
==
Item
::
FIELD_ITEM
)
?
((
Item_field
*
)
item
)
->
get_geometry_type
()
:
(
Field
::
geometry_type
)((
Item_geometry_func
*
)
item
)
->
get_geometry_type
();
#endif
/* HAVE_SPATIAL */
}
...
...
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