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
fb3506f3
Commit
fb3506f3
authored
Oct 12, 2005
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/mysql_src/mysql-5.0
parents
8d900e90
ad7705fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
0 deletions
+43
-0
mysql-test/Makefile.am
mysql-test/Makefile.am
+2
-0
mysql-test/r/rpl_sp.result
mysql-test/r/rpl_sp.result
+8
-0
mysql-test/t/rpl_sp.test
mysql-test/t/rpl_sp.test
+17
-0
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+1
-0
sql/sp_head.cc
sql/sp_head.cc
+15
-0
No files found.
mysql-test/Makefile.am
View file @
fb3506f3
...
@@ -61,6 +61,7 @@ dist-hook:
...
@@ -61,6 +61,7 @@ dist-hook:
$(INSTALL_DATA)
$(srcdir)
/std_data/des_key_file
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/des_key_file
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.pem
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.pem
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.frm
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.frm
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.cnf
$(distdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/lib/init_db.sql
$(distdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/init_db.sql
$(distdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/
*
.pl
$(distdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/
*
.pl
$(distdir)
/lib
...
@@ -89,6 +90,7 @@ install-data-local:
...
@@ -89,6 +90,7 @@ install-data-local:
$(INSTALL_DATA)
$(srcdir)
/std_data/Moscow_leap
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/Moscow_leap
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.pem
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.pem
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.frm
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.frm
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/std_data/
*
.cnf
$(DESTDIR)$(testdir)
/std_data
$(INSTALL_DATA)
$(srcdir)
/lib/init_db.sql
$(DESTDIR)$(testdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/init_db.sql
$(DESTDIR)$(testdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/
*
.pl
$(DESTDIR)$(testdir)
/lib
$(INSTALL_DATA)
$(srcdir)
/lib/
*
.pl
$(DESTDIR)$(testdir)
/lib
...
...
mysql-test/r/rpl_sp.result
View file @
fb3506f3
...
@@ -264,6 +264,14 @@ master-bin.000002 # Query 1 # use `mysqltest1`; insert into t1 values (1)
...
@@ -264,6 +264,14 @@ master-bin.000002 # Query 1 # use `mysqltest1`; insert into t1 values (1)
select * from t1;
select * from t1;
a
a
1
1
create procedure foo()
not deterministic
reads sql data
select * from t1;
call foo();
a
1
drop procedure foo;
drop function fn1;
drop function fn1;
drop database mysqltest1;
drop database mysqltest1;
drop user "zedjzlcsjhd"@127.0.0.1;
drop user "zedjzlcsjhd"@127.0.0.1;
mysql-test/t/rpl_sp.test
View file @
fb3506f3
...
@@ -258,6 +258,23 @@ sync_slave_with_master;
...
@@ -258,6 +258,23 @@ sync_slave_with_master;
select
*
from
t1
;
select
*
from
t1
;
#
# Test for bug #13969 "Routines which are replicated from master can't be
# executed on slave".
#
connection
master
;
create
procedure
foo
()
not
deterministic
reads
sql
data
select
*
from
t1
;
sync_slave_with_master
;
# This should not fail
call
foo
();
connection
master
;
drop
procedure
foo
;
sync_slave_with_master
;
# Clean up
# Clean up
connection
master
;
connection
master
;
drop
function
fn1
;
drop
function
fn1
;
...
...
scripts/make_binary_distribution.sh
View file @
fb3506f3
...
@@ -232,6 +232,7 @@ $CP mysql-test/t/*.def $BASE/mysql-test/t
...
@@ -232,6 +232,7 @@ $CP mysql-test/t/*.def $BASE/mysql-test/t
$CP
mysql-test/std_data/
*
.dat mysql-test/std_data/
*
.frm
\
$CP
mysql-test/std_data/
*
.dat mysql-test/std_data/
*
.frm
\
mysql-test/std_data/
*
.pem mysql-test/std_data/Moscow_leap
\
mysql-test/std_data/
*
.pem mysql-test/std_data/Moscow_leap
\
mysql-test/std_data/des_key_file mysql-test/std_data/
*
.
*
001
\
mysql-test/std_data/des_key_file mysql-test/std_data/
*
.
*
001
\
mysql-test/std_data/
*
.cnf
\
$BASE
/mysql-test/std_data
$BASE
/mysql-test/std_data
$CP
mysql-test/t/
*
.test mysql-test/t/
*
.disabled mysql-test/t/
*
.opt
\
$CP
mysql-test/t/
*
.test mysql-test/t/
*
.disabled mysql-test/t/
*
.opt
\
mysql-test/t/
*
.slave-mi mysql-test/t/
*
.sh mysql-test/t/
*
.sql
$BASE
/mysql-test/t
mysql-test/t/
*
.slave-mi mysql-test/t/
*
.sh mysql-test/t/
*
.sql
$BASE
/mysql-test/t
...
...
sql/sp_head.cc
View file @
fb3506f3
...
@@ -2653,9 +2653,24 @@ sp_change_security_context(THD *thd, sp_head *sp, Security_context **backup)
...
@@ -2653,9 +2653,24 @@ sp_change_security_context(THD *thd, sp_head *sp, Security_context **backup)
sp
->
m_definer_host
.
str
,
sp
->
m_definer_host
.
str
,
sp
->
m_db
.
str
))
sp
->
m_db
.
str
))
{
{
#ifdef NOT_YET_REPLICATION_SAFE
/*
Until we don't properly replicate information about stored routine
definer with stored routine creation statement all stored routines
on slave are created under ''@'' definer. Therefore we won't be able
to run any routine which was replicated from master on slave server
if we emit error here. This will cause big problems for users
who use slave for fail-over. So until we fully implement WL#2897
"Complete definer support in the stored routines" we run suid
stored routines for which we were unable to find definer under
invoker security context.
*/
my_error
(
ER_NO_SUCH_USER
,
MYF
(
0
),
sp
->
m_definer_user
.
str
,
my_error
(
ER_NO_SUCH_USER
,
MYF
(
0
),
sp
->
m_definer_user
.
str
,
sp
->
m_definer_host
.
str
);
sp
->
m_definer_host
.
str
);
return
TRUE
;
return
TRUE
;
#else
return
FALSE
;
#endif
}
}
*
backup
=
thd
->
security_ctx
;
*
backup
=
thd
->
security_ctx
;
thd
->
security_ctx
=
&
sp
->
m_security_ctx
;
thd
->
security_ctx
=
&
sp
->
m_security_ctx
;
...
...
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