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
56b91a8c
Commit
56b91a8c
authored
Aug 05, 2005
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testcase added to fix for bug #12281 (Geometry & trigger crash)
parent
b2147206
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
mysql-test/r/gis.result
mysql-test/r/gis.result
+5
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+10
-0
No files found.
mysql-test/r/gis.result
View file @
56b91a8c
...
...
@@ -665,3 +665,8 @@ ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
insert into t1 values (pointfromtext('point(1,1)'));
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
drop table t1;
create table t1 (s1 geometry not null,s2 char(100));
create trigger t1_bu before update on t1 for each row set new.s1 = null;
insert into t1 values (null,null);
ERROR 23000: Column 's1' cannot be null
drop table t1;
mysql-test/t/gis.test
View file @
56b91a8c
...
...
@@ -373,3 +373,13 @@ insert into t1 values (pointfromtext('point(1,1)'));
drop
table
t1
;
# End of 4.1 tests
#
# Bug #12281 (Geometry: crash in trigger)
#
create
table
t1
(
s1
geometry
not
null
,
s2
char
(
100
));
create
trigger
t1_bu
before
update
on
t1
for
each
row
set
new
.
s1
=
null
;
--
error
1048
insert
into
t1
values
(
null
,
null
);
drop
table
t1
;
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