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
e0e65472
Commit
e0e65472
authored
Nov 01, 2007
by
gkodinov/kgeorge@magare.gmz
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt
into magare.gmz:/home/kgeorge/mysql/autopush/B31866-5.1-opt
parents
055e3e78
447eff2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
mysql-test/r/trigger.result
mysql-test/r/trigger.result
+6
-0
mysql-test/t/trigger.test
mysql-test/t/trigger.test
+12
-0
sql/sql_show.cc
sql/sql_show.cc
+3
-0
No files found.
mysql-test/r/trigger.result
View file @
e0e65472
...
...
@@ -1978,3 +1978,9 @@ a
1
drop table table_25411_a;
drop table table_25411_b;
DROP TRIGGER IF EXISTS trg;
Warnings:
Note 1360 Trigger does not exist
SHOW CREATE TRIGGER trg;
ERROR HY000: Trigger does not exist
End of 5.1 tests.
mysql-test/t/trigger.test
View file @
e0e65472
...
...
@@ -2246,3 +2246,15 @@ select * from table_25411_a;
drop
table
table_25411_a
;
drop
table
table_25411_b
;
#
# Bug #31866: MySQL Server crashes on SHOW CREATE TRIGGER statement
#
--
disable
-
warnings
DROP
TRIGGER
IF
EXISTS
trg
;
--
enable
-
warnings
--
error
ER_TRG_DOES_NOT_EXIST
SHOW
CREATE
TRIGGER
trg
;
--
echo
End
of
5.1
tests
.
sql/sql_show.cc
View file @
e0e65472
...
...
@@ -6862,6 +6862,9 @@ bool show_create_trigger(THD *thd, const sp_name *trg_name)
{
TABLE_LIST
*
lst
=
get_trigger_table
(
thd
,
trg_name
);
if
(
!
lst
)
return
TRUE
;
/*
Open the table by name in order to load Table_triggers_list object.
...
...
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