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
12a68db3
Commit
12a68db3
authored
Dec 07, 2006
by
andrey@example.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional fix for bug#22369
parent
d1c9edf4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
mysql-test/t/events_bugs.test
mysql-test/t/events_bugs.test
+1
-1
sql/sql_table.cc
sql/sql_table.cc
+9
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+1
-1
No files found.
mysql-test/t/events_bugs.test
View file @
12a68db3
...
@@ -280,7 +280,7 @@ create event e22830_3 on schedule every 1 hour do alter event e22830_3 on schedu
...
@@ -280,7 +280,7 @@ create event e22830_3 on schedule every 1 hour do alter event e22830_3 on schedu
create
event
e22830_4
on
schedule
every
1
hour
do
alter
event
e22830_4
on
schedule
every
(
select
f22830
()
from
dual
)
hour
;
create
event
e22830_4
on
schedule
every
1
hour
do
alter
event
e22830_4
on
schedule
every
(
select
f22830
()
from
dual
)
hour
;
select
event_name
,
event_definition
,
interval_value
,
interval_field
from
information_schema
.
events
order
by
event_name
;
select
event_name
,
event_definition
,
interval_value
,
interval_field
from
information_schema
.
events
order
by
event_name
;
set
global
event_scheduler
=
on
;
set
global
event_scheduler
=
on
;
--
sleep
2.
4
--
sleep
4
set
global
event_scheduler
=
off
;
set
global
event_scheduler
=
off
;
select
event_name
,
event_definition
,
interval_value
,
interval_field
from
information_schema
.
events
order
by
event_name
;
select
event_name
,
event_definition
,
interval_value
,
interval_field
from
information_schema
.
events
order
by
event_name
;
drop
function
f22830
;
drop
function
f22830
;
...
...
sql/sql_table.cc
View file @
12a68db3
...
@@ -6527,6 +6527,15 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
...
@@ -6527,6 +6527,15 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
{
{
if
(
!
table
)
if
(
!
table
)
{
{
if
(
new_name
!=
table_name
||
new_db
!=
db
)
{
table_list
->
alias
=
new_name
;
table_list
->
table_name
=
new_name
;
table_list
->
table_name_length
=
strlen
(
new_name
);
table_list
->
db
=
new_db
;
table_list
->
db_length
=
strlen
(
new_db
);
}
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
VOID
(
pthread_mutex_unlock
(
&
LOCK_open
));
if
(
!
(
table
=
open_ltable
(
thd
,
table_list
,
TL_WRITE_ALLOW_READ
)))
if
(
!
(
table
=
open_ltable
(
thd
,
table_list
,
TL_WRITE_ALLOW_READ
)))
goto
err
;
goto
err
;
...
...
sql/sql_yacc.yy
View file @
12a68db3
...
@@ -4868,7 +4868,7 @@ alter_commands:
...
@@ -4868,7 +4868,7 @@ alter_commands:
| remove_partitioning
| remove_partitioning
| partitioning
| partitioning
/*
/*
This part was added for release 5.1 by Mikael Ronstr
m
.
This part was added for release 5.1 by Mikael Ronstr
öm
.
From here we insert a number of commands to manage the partitions of a
From here we insert a number of commands to manage the partitions of a
partitioned table such as adding partitions, dropping partitions,
partitioned table such as adding partitions, dropping partitions,
reorganising partitions in various manners. In future releases the list
reorganising partitions in various manners. In future releases the list
...
...
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