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
9c3805c9
Commit
9c3805c9
authored
Jun 28, 2006
by
kroki@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/tomash/src/mysql_ab/mysql-5.0
into mysql.com:/home/tomash/src/mysql_ab/mysql-5.0-bug10946
parents
55d148c5
3e2e20ec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
mysql-test/r/trigger.result
mysql-test/r/trigger.result
+1
-1
mysql-test/t/trigger.test
mysql-test/t/trigger.test
+1
-1
sql/sql_trigger.cc
sql/sql_trigger.cc
+3
-1
No files found.
mysql-test/r/trigger.result
View file @
9c3805c9
...
@@ -295,7 +295,7 @@ create trigger trg before insert on t1 for each row set @a:=1;
...
@@ -295,7 +295,7 @@ create trigger trg before insert on t1 for each row set @a:=1;
create trigger trg after insert on t1 for each row set @a:=1;
create trigger trg after insert on t1 for each row set @a:=1;
ERROR HY000: Trigger already exists
ERROR HY000: Trigger already exists
create trigger trg2 before insert on t1 for each row set @a:=1;
create trigger trg2 before insert on t1 for each row set @a:=1;
ERROR
HY000: Trigger already exists
ERROR
42000: This version of MySQL doesn't yet support 'multiple triggers with the same action time and event for one table'
create trigger trg before insert on t3 for each row set @a:=1;
create trigger trg before insert on t3 for each row set @a:=1;
ERROR HY000: Trigger already exists
ERROR HY000: Trigger already exists
create trigger trg2 before insert on t3 for each row set @a:=1;
create trigger trg2 before insert on t3 for each row set @a:=1;
...
...
mysql-test/t/trigger.test
View file @
9c3805c9
...
@@ -321,7 +321,7 @@ create trigger trg before insert on t2 for each row set @a:=1;
...
@@ -321,7 +321,7 @@ create trigger trg before insert on t2 for each row set @a:=1;
create
trigger
trg
before
insert
on
t1
for
each
row
set
@
a
:=
1
;
create
trigger
trg
before
insert
on
t1
for
each
row
set
@
a
:=
1
;
--
error
1359
--
error
1359
create
trigger
trg
after
insert
on
t1
for
each
row
set
@
a
:=
1
;
create
trigger
trg
after
insert
on
t1
for
each
row
set
@
a
:=
1
;
--
error
1
359
--
error
1
235
create
trigger
trg2
before
insert
on
t1
for
each
row
set
@
a
:=
1
;
create
trigger
trg2
before
insert
on
t1
for
each
row
set
@
a
:=
1
;
--
error
1359
--
error
1359
create
trigger
trg
before
insert
on
t3
for
each
row
set
@
a
:=
1
;
create
trigger
trg
before
insert
on
t3
for
each
row
set
@
a
:=
1
;
...
...
sql/sql_trigger.cc
View file @
9c3805c9
...
@@ -375,7 +375,9 @@ bool Table_triggers_list::create_trigger(THD *thd, TABLE_LIST *tables,
...
@@ -375,7 +375,9 @@ bool Table_triggers_list::create_trigger(THD *thd, TABLE_LIST *tables,
/* We don't allow creation of several triggers of the same type yet */
/* We don't allow creation of several triggers of the same type yet */
if
(
bodies
[
lex
->
trg_chistics
.
event
][
lex
->
trg_chistics
.
action_time
])
if
(
bodies
[
lex
->
trg_chistics
.
event
][
lex
->
trg_chistics
.
action_time
])
{
{
my_message
(
ER_TRG_ALREADY_EXISTS
,
ER
(
ER_TRG_ALREADY_EXISTS
),
MYF
(
0
));
my_error
(
ER_NOT_SUPPORTED_YET
,
MYF
(
0
),
"multiple triggers with the same action time"
" and event for one table"
);
return
1
;
return
1
;
}
}
...
...
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