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
c4108ce3
Commit
c4108ce3
authored
Feb 24, 2011
by
Magne Mahre
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.1-security
parents
21095485
27166fc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
mysql-test/r/gis.result
mysql-test/r/gis.result
+5
-2
mysql-test/t/gis.test
mysql-test/t/gis.test
+8
-2
No files found.
mysql-test/r/gis.result
View file @
c4108ce3
...
...
@@ -1035,6 +1035,10 @@ NULL
NULL
drop table t1;
End of 5.1 tests
CREATE TABLE t0 (a BINARY(32) NOT NULL);
CREATE SPATIAL INDEX i on t0 (a);
ERROR 42000: A SPATIAL index may only contain a geometrical type column
INSERT INTO t0 VALUES (1);
CREATE TABLE t1(
col0 BINARY NOT NULL,
col2 TIMESTAMP,
...
...
@@ -1063,5 +1067,4 @@ col2 LINESTRING,
SPATIAL INDEX i1 (col1, col2)
);
ERROR HY000: Incorrect arguments to SPATIAL INDEX
DROP TABLE t1;
DROP TABLE t2;
DROP TABLE t0, t1, t2;
mysql-test/t/gis.test
View file @
c4108ce3
...
...
@@ -762,7 +762,14 @@ drop table t1;
#
# Bug #50574 5.5.x allows spatial indexes on non-spatial
# columns, causing crashes!
# Bug#11767480 SPATIAL INDEXES ON NON-SPATIAL COLUMNS
# CAUSE CRASHES.
#
CREATE
TABLE
t0
(
a
BINARY
(
32
)
NOT
NULL
);
--
error
ER_SPATIAL_MUST_HAVE_GEOM_COL
CREATE
SPATIAL
INDEX
i
on
t0
(
a
);
INSERT
INTO
t0
VALUES
(
1
);
--
error
ER_SPATIAL_MUST_HAVE_GEOM_COL
CREATE
TABLE
t1
(
col0
BINARY
NOT
NULL
,
...
...
@@ -800,6 +807,5 @@ CREATE TABLE t3 (
);
# cleanup
DROP
TABLE
t1
;
DROP
TABLE
t2
;
DROP
TABLE
t0
,
t1
,
t2
;
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