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
cdc27d59
Commit
cdc27d59
authored
Mar 16, 2004
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for #233 (final part)
parent
2011d717
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
mysql-test/r/gis.result
mysql-test/r/gis.result
+6
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+8
-0
sql/field.h
sql/field.h
+2
-2
sql/field_conv.cc
sql/field_conv.cc
+2
-2
No files found.
mysql-test/r/gis.result
View file @
cdc27d59
...
...
@@ -458,3 +458,9 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL No tables used
Warnings:
Note 1003 select high_priority issimple(multipoint(point(3,6),point(4,10))) AS `issimple(MultiPoint(Point(3, 6), Point(4, 10)))`,issimple(point(3,6)) AS `issimple(Point(3, 6))`
create table t1 (a geometry not null);
insert into t1 values (GeomFromText('Point(1 2)'));
insert into t1 values ('Garbage');
ERROR HY000: Unknown error
alter table t1 add spatial index(a);
drop table t1;
mysql-test/t/gis.test
View file @
cdc27d59
...
...
@@ -160,3 +160,11 @@ SELECT SRID(GeomFromText('LineString(1 1,2 2)',101));
explain
extended
SELECT
SRID
(
GeomFromText
(
'LineString(1 1,2 2)'
,
101
));
#select issimple(MultiPoint(Point(3, 6), Point(4, 10))), issimple(Point(3, 6)),issimple(PolygonFromText('POLYGON((10 10,20 10,20 20,10 20,10 10))')),issimple(GeometryFromText('POINT(1 4)')), issimple(AsWKB(GeometryFromText('POINT(1 4)')));
explain
extended
select
issimple
(
MultiPoint
(
Point
(
3
,
6
),
Point
(
4
,
10
))),
issimple
(
Point
(
3
,
6
));
create
table
t1
(
a
geometry
not
null
);
insert
into
t1
values
(
GeomFromText
(
'Point(1 2)'
));
--
error
1105
insert
into
t1
values
(
'Garbage'
);
alter
table
t1
add
spatial
index
(
a
);
drop
table
t1
;
sql/field.h
View file @
cdc27d59
...
...
@@ -1184,8 +1184,8 @@ Field *make_field(char *ptr, uint32 field_length,
struct
st_table
*
table
);
uint
pack_length_to_packflag
(
uint
type
);
uint32
calc_pack_length
(
enum_field_types
type
,
uint32
length
);
bool
set_field_to_null
(
Field
*
field
);
bool
set_field_to_null_with_conversions
(
Field
*
field
,
bool
no_conversions
);
int
set_field_to_null
(
Field
*
field
);
int
set_field_to_null_with_conversions
(
Field
*
field
,
bool
no_conversions
);
bool
test_if_int
(
const
char
*
str
,
int
length
,
const
char
*
int_end
,
CHARSET_INFO
*
cs
);
...
...
sql/field_conv.cc
View file @
cdc27d59
...
...
@@ -109,7 +109,7 @@ static void do_outer_field_to_null_str(Copy_field *copy)
}
bool
int
set_field_to_null
(
Field
*
field
)
{
if
(
field
->
real_maybe_null
())
...
...
@@ -149,7 +149,7 @@ set_field_to_null(Field *field)
If no_conversion was not set, an error message is printed
*/
bool
int
set_field_to_null_with_conversions
(
Field
*
field
,
bool
no_conversions
)
{
if
(
field
->
real_maybe_null
())
...
...
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