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
71d9ba9c
Commit
71d9ba9c
authored
Sep 09, 2010
by
Ramil Kalimullin
Browse files
Options
Browse Files
Download
Plain Diff
Automerge.
parents
8e261a9d
762c7ca4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
mysql-test/collections/default.experimental
mysql-test/collections/default.experimental
+3
-0
mysql-test/r/gis.result
mysql-test/r/gis.result
+3
-3
sql/item_geofunc.h
sql/item_geofunc.h
+6
-4
No files found.
mysql-test/collections/default.experimental
View file @
71d9ba9c
...
...
@@ -94,3 +94,6 @@ parts.partition_syntax_ndb # joro : NDB tests marked as experiment
parts.partition_value_ndb # joro : NDB tests marked as experimental as agreed with bochklin
main.mysqlhotcopy_myisam # horst: due to bug#54129
main.mysqlhotcopy_archive # horst: due to bug#54129
main.gis-rtree # svoj: due to BUG#38965
main.type_float # svoj: due to BUG#38965
main.type_newdecimal # svoj: due to BUG#38965
mysql-test/r/gis.result
View file @
71d9ba9c
...
...
@@ -707,7 +707,7 @@ numgeometries(b) IS NULL, numinteriorrings(b) IS NULL, numpoints(b) IS NULL,
area(b) IS NULL, glength(b) IS NULL, srid(b) IS NULL, x(b) IS NULL,
y(b) IS NULL
from t1;
ERROR 22007: Illegal non geometric '' value found during parsing
ERROR 22007: Illegal non geometric '
`test`.`t1`.`b`
' value found during parsing
select
within(b, b) IS NULL, contains(b, b) IS NULL, overlaps(b, b) IS NULL,
equals(b, b) IS NULL, disjoint(b, b) IS NULL, touches(b, b) IS NULL,
...
...
@@ -722,7 +722,7 @@ point(b, b) IS NULL, linestring(b) IS NULL, polygon(b) IS NULL, multipoint(b) IS
multilinestring(b) IS NULL, multipolygon(b) IS NULL,
geometrycollection(b) IS NULL
from t1;
ERROR 22007: Illegal non geometric '' value found during parsing
ERROR 22007: Illegal non geometric '
`test`.`t1`.`b`
' value found during parsing
drop table t1;
CREATE TABLE t1(a POINT) ENGINE=MyISAM;
INSERT INTO t1 VALUES (NULL);
...
...
@@ -1006,7 +1006,7 @@ drop table t1;
SELECT MultiPoint(12345,'');
ERROR 22007: Illegal non geometric '12345' value found during parsing
SELECT 1 FROM (SELECT GREATEST(1,GEOMETRYCOLLECTION('00000','00000')) b FROM DUAL) AS d WHERE (LINESTRING(d.b));
ERROR 22007: Illegal non geometric '' value found during parsing
ERROR 22007: Illegal non geometric ''
00000''
value found during parsing
#
# BUG#51875: crash when loading data into geometry function polyfromwkb
#
...
...
sql/item_geofunc.h
View file @
71d9ba9c
...
...
@@ -181,13 +181,15 @@ public:
String
*
val_str
(
String
*
);
void
fix_length_and_dec
()
{
for
(
unsigned
int
i
=
0
;
i
<
arg_count
;
++
i
)
for
(
unsigned
int
i
=
0
;
i
<
arg_count
;
++
i
)
{
if
(
args
[
i
]
->
fixed
&&
args
[
i
]
->
field_type
()
!=
MYSQL_TYPE_GEOMETRY
)
if
(
args
[
i
]
->
fixed
&&
args
[
i
]
->
field_type
()
!=
MYSQL_TYPE_GEOMETRY
)
{
String
str
;
args
[
i
]
->
val_str
(
&
str
);
my_error
(
ER_ILLEGAL_VALUE_FOR_TYPE
,
MYF
(
0
),
"non geometric"
,
str
.
c_ptr
());
args
[
i
]
->
print
(
&
str
,
QT_ORDINARY
);
str
.
append
(
'\0'
);
my_error
(
ER_ILLEGAL_VALUE_FOR_TYPE
,
MYF
(
0
),
"non geometric"
,
str
.
ptr
());
}
}
}
...
...
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