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
f7234385
Commit
f7234385
authored
Aug 27, 2004
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed BUG#5251: mysql changes creation time of a procedure/function when altering.
parent
508fb5aa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+11
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+16
-0
sql/sp.cc
sql/sp.cc
+1
-0
No files found.
mysql-test/r/sp.result
View file @
f7234385
...
...
@@ -1744,6 +1744,17 @@ select @n|
2
delete from t1|
drop procedure bug3157|
create procedure bug5251()
begin
end|
select created into @c1 from mysql.proc
where db='test' and name='bug5251'|
alter procedure bug5251 comment 'foobar'|
select count(*) from mysql.proc
where db='test' and name='bug5251' and created = @c1|
count(*)
1
drop procedure bug5251|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned)
...
...
mysql-test/t/sp.test
View file @
f7234385
...
...
@@ -1898,6 +1898,22 @@ select @n|
delete
from
t1
|
drop
procedure
bug3157
|
#
# BUG#5251: mysql changes creation time of a procedure/function when altering
#
create
procedure
bug5251
()
begin
end
|
select
created
into
@
c1
from
mysql
.
proc
where
db
=
'test'
and
name
=
'bug5251'
|
--
sleep
2
alter
procedure
bug5251
comment
'foobar'
|
select
count
(
*
)
from
mysql
.
proc
where
db
=
'test'
and
name
=
'bug5251'
and
created
=
@
c1
|
drop
procedure
bug5251
|
#
# Some "real" examples
...
...
sql/sp.cc
View file @
f7234385
...
...
@@ -425,6 +425,7 @@ db_update_routine(THD *thd, int type, sp_name *name,
if
(
ret
==
SP_OK
)
{
store_record
(
table
,
record
[
1
]);
table
->
timestamp_on_update_now
=
0
;
// Don't update create time now.
((
Field_timestamp
*
)
table
->
field
[
MYSQL_PROC_FIELD_MODIFIED
])
->
set_time
();
if
(
chistics
->
suid
!=
IS_DEFAULT_SUID
)
table
->
field
[
MYSQL_PROC_FIELD_SECURITY_TYPE
]
->
store
((
longlong
)
chistics
->
suid
);
...
...
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