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
0b8ebc24
Commit
0b8ebc24
authored
Jan 23, 2006
by
holyfoot@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes about the embedded-server in 5.1
parent
53a379d0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
187 additions
and
4 deletions
+187
-4
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+6
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+2
-0
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+2
-0
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+2
-2
mysql-test/r/sp_notembedded.result
mysql-test/r/sp_notembedded.result
+171
-0
mysql-test/t/log_tables.test
mysql-test/t/log_tables.test
+2
-0
mysql-test/t/sp_notembedded.test
mysql-test/t/sp_notembedded.test
+2
-2
No files found.
libmysqld/lib_sql.cc
View file @
0b8ebc24
...
@@ -491,6 +491,12 @@ int init_embedded_server(int argc, char **argv, char **groups)
...
@@ -491,6 +491,12 @@ int init_embedded_server(int argc, char **argv, char **groups)
my_progname
=
(
char
*
)
"mysql_embedded"
;
my_progname
=
(
char
*
)
"mysql_embedded"
;
/*
Perform basic logger initialization logger. Should be called after
MY_INIT, as it initializes mutexes. Log tables are inited later.
*/
logger
.
init_base
();
if
(
init_common_variables
(
"my"
,
*
argcp
,
*
argvp
,
(
const
char
**
)
groups
))
if
(
init_common_variables
(
"my"
,
*
argcp
,
*
argvp
,
(
const
char
**
)
groups
))
{
{
mysql_server_end
();
mysql_server_end
();
...
...
mysql-test/mysql-test-run.pl
View file @
0b8ebc24
...
@@ -711,6 +711,8 @@ sub command_line_setup () {
...
@@ -711,6 +711,8 @@ sub command_line_setup () {
$glob_use_embedded_server
=
1
;
$glob_use_embedded_server
=
1
;
push
(
@glob_test_mode
,
"
embedded
");
push
(
@glob_test_mode
,
"
embedded
");
$opt_skip_rpl
=
1
;
# We never run replication with embedded
$opt_skip_rpl
=
1
;
# We never run replication with embedded
$opt_skip_ndbcluster
=
1
;
# Avoid auto detection
$opt_skip_ssl
=
1
;
if
(
$opt_extern
)
if
(
$opt_extern
)
{
{
...
...
mysql-test/mysql-test-run.sh
View file @
0b8ebc24
...
@@ -317,6 +317,8 @@ while test $# -gt 0; do
...
@@ -317,6 +317,8 @@ while test $# -gt 0; do
USE_EMBEDDED_SERVER
=
1
USE_EMBEDDED_SERVER
=
1
USE_MANAGER
=
0
NO_SLAVE
=
1
USE_MANAGER
=
0
NO_SLAVE
=
1
USE_RUNNING_SERVER
=
0
USE_RUNNING_SERVER
=
0
USE_NDBCLUSTER
=
""
USE_NDBCLUSTER_SLAVE
=
""
TEST_MODE
=
"
$TEST_MODE
embedded"
;;
TEST_MODE
=
"
$TEST_MODE
embedded"
;;
--purify
)
--purify
)
USE_PURIFY
=
1
USE_PURIFY
=
1
...
...
mysql-test/r/mysqltest.result
View file @
0b8ebc24
select
-1
as "before_use_test" ;
select
0
as "before_use_test" ;
before_use_test
before_use_test
-1
0
select otto from (select 1 as otto) as t1;
select otto from (select 1 as otto) as t1;
otto
otto
1
1
...
...
mysql-test/r/sp_notembedded.result
View file @
0b8ebc24
...
@@ -33,3 +33,174 @@ ERROR 42000: Can't find any matching row in the user table
...
@@ -33,3 +33,174 @@ ERROR 42000: Can't find any matching row in the user table
select bug5278()|
select bug5278()|
ERROR 42000: Can't find any matching row in the user table
ERROR 42000: Can't find any matching row in the user table
drop function bug5278|
drop function bug5278|
drop table if exists t1|
create table t1 (
id char(16) not null default '',
data int not null
)|
drop procedure if exists bug3583|
drop procedure if exists bug3583|
create procedure bug3583()
begin
declare c int;
select * from t1;
select count(*) into c from t1;
select c;
end|
insert into t1 values ("x", 3), ("y", 5)|
set @x = @@query_cache_size|
set global query_cache_size = 10*1024*1024|
flush status|
flush query cache|
show status like 'Qcache_hits'|
Variable_name Value
Qcache_hits 0
call bug3583()|
id data
x 3
y 5
c
2
show status like 'Qcache_hits'|
Variable_name Value
Qcache_hits 0
call bug3583()|
id data
x 3
y 5
c
2
call bug3583()|
id data
x 3
y 5
c
2
show status like 'Qcache_hits'|
Variable_name Value
Qcache_hits 2
set global query_cache_size = @x|
flush status|
flush query cache|
delete from t1|
drop procedure bug3583|
drop table t1;
#|
drop procedure if exists bug6807|
create procedure bug6807()
begin
declare id int;
set id = connection_id();
kill query id;
select 'Not reached';
end|
call bug6807()|
ERROR 70100: Query execution was interrupted
call bug6807()|
ERROR 70100: Query execution was interrupted
drop procedure bug6807|
drop function if exists bug10100f|
drop procedure if exists bug10100p|
drop procedure if exists bug10100t|
drop procedure if exists bug10100pt|
drop procedure if exists bug10100pv|
drop procedure if exists bug10100pd|
drop procedure if exists bug10100pc|
create function bug10100f(prm int) returns int
begin
if prm > 1 then
return prm * bug10100f(prm - 1);
end if;
return 1;
end|
create procedure bug10100p(prm int, inout res int)
begin
set res = res * prm;
if prm > 1 then
call bug10100p(prm - 1, res);
end if;
end|
create procedure bug10100t(prm int)
begin
declare res int;
set res = 1;
call bug10100p(prm, res);
select res;
end|
create table t3 (a int)|
insert into t3 values (0)|
create view v1 as select a from t3;
create procedure bug10100pt(level int, lim int)
begin
if level < lim then
update t3 set a=level;
FLUSH TABLES;
call bug10100pt(level+1, lim);
else
select * from t3;
end if;
end|
create procedure bug10100pv(level int, lim int)
begin
if level < lim then
update v1 set a=level;
FLUSH TABLES;
call bug10100pv(level+1, lim);
else
select * from v1;
end if;
end|
prepare stmt2 from "select * from t3;";
create procedure bug10100pd(level int, lim int)
begin
if level < lim then
select level;
prepare stmt1 from "update t3 set a=a+2";
execute stmt1;
FLUSH TABLES;
execute stmt1;
FLUSH TABLES;
execute stmt1;
FLUSH TABLES;
deallocate prepare stmt1;
execute stmt2;
select * from t3;
call bug10100pd(level+1, lim);
else
execute stmt2;
end if;
end|
create procedure bug10100pc(level int, lim int)
begin
declare lv int;
declare c cursor for select a from t3;
open c;
if level < lim then
select level;
fetch c into lv;
select lv;
update t3 set a=level+lv;
FLUSH TABLES;
call bug10100pc(level+1, lim);
else
select * from t3;
end if;
close c;
end|
set @@max_sp_recursion_depth=255|
set @var=1|
call bug10100p(255, @var)|
call bug10100pt(1,255)|
call bug10100pv(1,255)|
call bug10100pd(1,255)|
call bug10100pc(1,255)|
set @@max_sp_recursion_depth=0|
deallocate prepare stmt2|
drop function bug10100f|
drop procedure bug10100p|
drop procedure bug10100t|
drop procedure bug10100pt|
drop procedure bug10100pv|
drop procedure bug10100pd|
drop procedure bug10100pc|
drop view v1|
mysql-test/t/log_tables.test
View file @
0b8ebc24
# this test needs multithreaded mysqltest
--
source
include
/
not_embedded
.
inc
#
#
# Basic log tables test
# Basic log tables test
#
#
...
...
mysql-test/t/sp_notembedded.test
View file @
0b8ebc24
...
@@ -62,12 +62,12 @@ drop function bug5278|
...
@@ -62,12 +62,12 @@ drop function bug5278|
--
disable_warnings
--
disable_warnings
drop
table
if
exists
t1
;
drop
table
if
exists
t1
|
--
enable_warnings
--
enable_warnings
create
table
t1
(
create
table
t1
(
id
char
(
16
)
not
null
default
''
,
id
char
(
16
)
not
null
default
''
,
data
int
not
null
data
int
not
null
)
;
)
|
#
#
# BUG#3583: query cache doesn't work for stored procedures
# BUG#3583: query cache doesn't work for stored procedures
#
#
...
...
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