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
f8d4202c
Commit
f8d4202c
authored
Nov 01, 2006
by
holyfoot/hf@deer.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:mysql-5.1-opt
into mysql.com:/home/hf/work/21790/my51-21790
parents
f698210d
28d610df
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
mysql-test/r/gis-rtree.result
mysql-test/r/gis-rtree.result
+7
-0
mysql-test/t/gis-rtree.test
mysql-test/t/gis-rtree.test
+12
-0
sql/handler.cc
sql/handler.cc
+2
-2
No files found.
mysql-test/r/gis-rtree.result
View file @
f8d4202c
...
...
@@ -862,6 +862,13 @@ CHECK TABLE t1 EXTENDED;
Table Op Msg_type Msg_text
test.t1 check status OK
DROP TABLE t1;
CREATE TABLE t1(foo GEOMETRY NOT NULL, SPATIAL INDEX(foo) );
INSERT INTO t1(foo) VALUES (NULL);
ERROR 23000: Column 'foo' cannot be null
INSERT INTO t1() VALUES ();
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
INSERT INTO t1(foo) VALUES ('');
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
CREATE TABLE t1 (foo GEOMETRY NOT NULL, SPATIAL INDEX(foo) );
INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(1,1)));
INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(1,0)));
...
...
mysql-test/t/gis-rtree.test
View file @
f8d4202c
...
...
@@ -242,3 +242,15 @@ INSERT INTO t1 (foo) VALUES (PointFromWKB(POINT(0,0)));
SELECT
1
FROM
t1
WHERE
foo
!=
PointFromWKB
(
POINT
(
0
,
0
));
DROP
TABLE
t1
;
# End of 4.1 tests
#
# bug #21790 (UNKNOWN ERROR on NULLs in RTree)
#
CREATE
TABLE
t1
(
foo
GEOMETRY
NOT
NULL
,
SPATIAL
INDEX
(
foo
)
);
--
error
1048
INSERT
INTO
t1
(
foo
)
VALUES
(
NULL
);
--
error
1416
INSERT
INTO
t1
()
VALUES
();
--
error
1416
INSERT
INTO
t1
(
foo
)
VALUES
(
''
);
DROP
TABLE
t1
;
sql/handler.cc
View file @
f8d4202c
...
...
@@ -2115,8 +2115,8 @@ void handler::print_error(int error, myf errflag)
break
;
}
case
HA_ERR_NULL_IN_SPATIAL
:
textno
=
ER_UNKNOWN_ERROR
;
break
;
my_error
(
ER_CANT_CREATE_GEOMETRY_OBJECT
,
MYF
(
0
))
;
DBUG_VOID_RETURN
;
case
HA_ERR_FOUND_DUPP_UNIQUE
:
textno
=
ER_DUP_UNIQUE
;
break
;
...
...
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