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
dbc39ac3
Commit
dbc39ac3
authored
Mar 18, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge heikki@bk-internal.mysql.com:/home/bk/mysql-5.0
into hundin.mysql.fi:/home/heikki/mysql-5.0
parents
8c69d59a
6fdc7b55
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
180 additions
and
53 deletions
+180
-53
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
man/mysql.1.in
man/mysql.1.in
+1
-1
man/mysql_fix_privilege_tables.1.in
man/mysql_fix_privilege_tables.1.in
+1
-1
man/mysql_zap.1.in
man/mysql_zap.1.in
+1
-1
man/mysqlaccess.1.in
man/mysqlaccess.1.in
+1
-1
man/mysqladmin.1.in
man/mysqladmin.1.in
+1
-1
man/mysqld.1.in
man/mysqld.1.in
+1
-1
man/mysqld_multi.1.in
man/mysqld_multi.1.in
+1
-1
man/mysqld_safe.1.in
man/mysqld_safe.1.in
+1
-1
man/mysqldump.1.in
man/mysqldump.1.in
+1
-1
man/mysqlman.1.in
man/mysqlman.1.in
+1
-1
man/mysqlshow.1.in
man/mysqlshow.1.in
+1
-1
man/perror.1.in
man/perror.1.in
+1
-1
man/replace.1.in
man/replace.1.in
+1
-1
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+6
-6
mysql-test/r/olap.result
mysql-test/r/olap.result
+13
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+19
-0
mysql-test/r/sp_trans.result
mysql-test/r/sp_trans.result
+12
-12
mysql-test/t/olap.test
mysql-test/t/olap.test
+16
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+9
-0
mysql-test/t/sp-threads.test
mysql-test/t/sp-threads.test
+11
-1
mysql-test/t/sp.test
mysql-test/t/sp.test
+44
-2
mysql-test/t/sp_trans.test
mysql-test/t/sp_trans.test
+26
-15
sql/sp_head.cc
sql/sp_head.cc
+1
-0
sql/sql_parse.cc
sql/sql_parse.cc
+2
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+6
-3
No files found.
BitKeeper/etc/logging_ok
View file @
dbc39ac3
...
...
@@ -49,6 +49,7 @@ dlenev@jabberwock.localdomain
dlenev@mysql.com
ejonore@mc03.ndb.mysql.com
gbichot@quadita2.mysql.com
gbichot@quadxeon.mysql.com
georg@beethoven.local
georg@beethoven.site
georg@lmy002.wdf.sap.corp
...
...
man/mysql.1.in
View file @
dbc39ac3
...
...
@@ -145,7 +145,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysql_fix_privilege_tables.1.in
View file @
dbc39ac3
...
...
@@ -30,7 +30,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysql_zap.1.in
View file @
dbc39ac3
...
...
@@ -44,7 +44,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysqlaccess.1.in
View file @
dbc39ac3
...
...
@@ -110,7 +110,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysqladmin.1.in
View file @
dbc39ac3
...
...
@@ -194,7 +194,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysqld.1.in
View file @
dbc39ac3
...
...
@@ -219,7 +219,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysqld_multi.1.in
View file @
dbc39ac3
...
...
@@ -74,7 +74,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
...
...
man/mysqld_safe.1.in
View file @
dbc39ac3
...
...
@@ -76,7 +76,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysqldump.1.in
View file @
dbc39ac3
...
...
@@ -263,7 +263,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/mysqlman.1.in
View file @
dbc39ac3
...
...
@@ -9,7 +9,7 @@ In most cases, you can run the executable from the command line with a "--help"
argument to display a brief summary of the executable's arguments and function.
For more information about MySQL, please refer to the MySQL reference manual,
which may already be installed locally and which is also available online at
http://dev.mysql.com/doc/
http://dev.mysql.com/doc/
mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.\" end of man page
man/mysqlshow.1.in
View file @
dbc39ac3
...
...
@@ -83,7 +83,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/perror.1.in
View file @
dbc39ac3
...
...
@@ -43,7 +43,7 @@ replace(1)
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
man/replace.1.in
View file @
dbc39ac3
...
...
@@ -57,7 +57,7 @@ perror(1),
.P
For more information please refer to the MySQL reference
manual, which may already be installed locally and which
is also available online at http://
www.mysql.com/doc/en/
is also available online at http://
dev.mysql.com/doc/mysql/en
.SH BUGS
Please refer to http://bugs.mysql.com/ to report bugs.
.SH AUTHOR
...
...
mysql-test/mysql-test-run.sh
View file @
dbc39ac3
...
...
@@ -1535,12 +1535,12 @@ run_testcase ()
return
fi
if
[
-f
"
$TESTDIR
/
$tname
.disabled"
]
then
comment
=
`
$CAT
$TESTDIR
/
$tname
.disabled
`
;
disable_test
$tname
"
$comment
"
return
fi
#
if [ -f "$TESTDIR/$tname.disabled" ]
#
then
#
comment=`$CAT $TESTDIR/$tname.disabled`;
#
disable_test $tname "$comment"
#
return
#
fi
if
[
-f
"
$TESTDIR
/disabled.def"
]
;
then
comment
=
`
$GREP
"^
$tname
*: *"
$TESTDIR
/disabled.def
`
;
if
[
-n
"
$comment
"
]
...
...
mysql-test/r/olap.result
View file @
dbc39ac3
...
...
@@ -379,3 +379,16 @@ a sum(b)
4 4
NULL 14
DROP TABLE t1;
CREATE TABLE t1 (a int, b int);
INSERT INTO t1 VALUES
(1,4),
(2,2), (2,2),
(4,1), (4,1), (4,1), (4,1),
(2,1), (2,1);
SELECT a, SUM(b) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1;
a SUM(b)
1 4
SELECT SQL_CALC_FOUND_ROWS a, SUM(b) FROM t1 GROUP BY a WITH ROLLUP LIMIT 1;
a SUM(b)
1 4
DROP TABLE t1;
mysql-test/r/sp.result
View file @
dbc39ac3
...
...
@@ -2777,4 +2777,23 @@ a
3.2000
drop procedure bug8937|
delete from t1|
drop procedure if exists bug6600|
drop table if exists t3|
drop view if exists v1|
create table t3 (s1 decimal(31,30))|
create view v1 as select * from t3|
create procedure bug6600()
check table v1|
call bug6600()|
Table Op Msg_type Msg_text
test.v1 check status OK
call bug6600()|
Table Op Msg_type Msg_text
test.v1 check status OK
call bug6600()|
Table Op Msg_type Msg_text
test.v1 check status OK
drop procedure bug6600|
drop view v1|
drop table t3|
drop table t1,t2;
mysql-test/r/sp_trans.result
View file @
dbc39ac3
drop procedure if exists
sp1;
drop procedure if exists
bug8850|
create table t1 (a int) engine=innodb|
create procedure
sp1
()
create procedure
bug8850
()
begin
truncate table t1; insert t1 values (1); rollback;
end|
set autocommit=0
;
insert t1 values (2)
;
call
sp1();
set autocommit=0
|
insert t1 values (2)
|
call
bug8850()|
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
commit
;
select * from t1
;
commit
|
select * from t1
|
a
2
call
sp1();
call
bug8850()|
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
set autocommit=1
;
select * from t1
;
set autocommit=1
|
select * from t1
|
a
2
drop table t1
;
drop procedure
sp1;
drop table t1
|
drop procedure
bug8850|
mysql-test/t/olap.test
View file @
dbc39ac3
...
...
@@ -155,3 +155,19 @@ SELECT DISTINCT a, sum(b) FROM t1 GROUP BY a,b WITH ROLLUP;
DROP
TABLE
t1
;
#
# Tests for bugs #8617: SQL_CACL_FOUND_ROWS with rollup and limit
#
CREATE
TABLE
t1
(
a
int
,
b
int
);
INSERT
INTO
t1
VALUES
(
1
,
4
),
(
2
,
2
),
(
2
,
2
),
(
4
,
1
),
(
4
,
1
),
(
4
,
1
),
(
4
,
1
),
(
2
,
1
),
(
2
,
1
);
SELECT
a
,
SUM
(
b
)
FROM
t1
GROUP
BY
a
WITH
ROLLUP
LIMIT
1
;
SELECT
SQL_CALC_FOUND_ROWS
a
,
SUM
(
b
)
FROM
t1
GROUP
BY
a
WITH
ROLLUP
LIMIT
1
;
DROP
TABLE
t1
;
mysql-test/t/sp-error.test
View file @
dbc39ac3
...
...
@@ -680,6 +680,15 @@ begin
end
|
#
# BUG#NNNN: New bug synopsis
#
#--disable_warnings
#drop procedure if exists bugNNNN|
#--enable_warnings
#create procedure bugNNNN...
drop
table
t1
|
delimiter
;
|
mysql-test/t/sp-threads.test
View file @
dbc39ac3
#
# Testing stored procedures with multiple connections
# Testing stored procedures with multiple connections,
# except security/privilege tests, they go to sp-security.test
#
connect
(
con1root
,
localhost
,
root
,,);
...
...
@@ -52,3 +53,12 @@ connection con1root;
drop
table
t1
;
drop
procedure
bug4934
;
#
# BUG#NNNN: New bug synopsis
#
#--disable_warnings
#drop procedure if exists bugNNNN;
#--enable_warnings
#create procedure bugNNNN...
mysql-test/t/sp.test
View file @
dbc39ac3
...
...
@@ -4,11 +4,22 @@
# Please keep this file free of --error cases and other
# things that will not run in a single debugged mysqld
# process (e.g. master-slave things).
--
source
include
/
have_innodb
.
inc
#
# Test cases for bugs are added at the end. See template there.
#
# Tests that require --error go into sp-error.test
# Tests that require inndb go into sp_trans.test
# Tests that check privilege and security issues go to sp-security.test.
# Tests that require multiple connections, except security/privilege tests,
# go to sp-thread.
use
test
;
# Test tables
#
# t1 and t2 are reused throughout the file, and dropped at the end.
# t3 and up are created and dropped when needed.
#
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
...
...
@@ -3387,6 +3398,37 @@ drop procedure bug8937|
delete
from
t1
|
#
# BUG#6600: Stored procedure crash after repeated calls with check table
#
--
disable_warnings
drop
procedure
if
exists
bug6600
|
drop
table
if
exists
t3
|
drop
view
if
exists
v1
|
--
enable_warnings
create
table
t3
(
s1
decimal
(
31
,
30
))
|
create
view
v1
as
select
*
from
t3
|
create
procedure
bug6600
()
check
table
v1
|
call
bug6600
()
|
call
bug6600
()
|
call
bug6600
()
|
drop
procedure
bug6600
|
drop
view
v1
|
drop
table
t3
|
#
# BUG#NNNN: New bug synopsis
#
#--disable_warnings
#drop procedure if exists bugNNNN|
#--enable_warnings
#create procedure bugNNNN...
# Add bugs above this line. Use existing tables t1 and t2 when
# practical, or create table t3, t3 etc temporarily (and drop them).
delimiter
;
|
...
...
mysql-test/t/sp_trans.test
View file @
dbc39ac3
...
...
@@ -4,32 +4,43 @@
--
source
include
/
have_innodb
.
inc
delimiter
|
;
#
# BUG#8850
# BUG#8850
: Truncate table in a stored procedure locks the tables
#
--
disable_warnings
drop
procedure
if
exists
sp1
;
drop
procedure
if
exists
bug8850
|
--
enable_warnings
delimiter
|
;
create
table
t1
(
a
int
)
engine
=
innodb
|
create
procedure
sp1
()
create
procedure
bug8850
()
begin
truncate
table
t1
;
insert
t1
values
(
1
);
rollback
;
end
|
delimiter
;
|
set
autocommit
=
0
;
insert
t1
values
(
2
)
;
set
autocommit
=
0
|
insert
t1
values
(
2
)
|
--
error
1192
call
sp1
();
commit
;
select
*
from
t1
;
call
bug8850
()
|
commit
|
select
*
from
t1
|
#
# when CALL will be fixed to not start a transaction, the error should
# go away
--
error
1192
call
sp1
();
set
autocommit
=
1
;
select
*
from
t1
;
drop
table
t1
;
drop
procedure
sp1
;
call
bug8850
()
|
set
autocommit
=
1
|
select
*
from
t1
|
drop
table
t1
|
drop
procedure
bug8850
|
#
# BUG#NNNN: New bug synopsis
#
#--disable_warnings
#drop procedure if exists bugNNNN|
#--enable_warnings
#create procedure bugNNNN...
delimiter
;
|
sql/sp_head.cc
View file @
dbc39ac3
...
...
@@ -58,6 +58,7 @@ sp_multi_results_command(enum enum_sql_command cmd)
{
switch
(
cmd
)
{
case
SQLCOM_ANALYZE
:
case
SQLCOM_CHECK
:
case
SQLCOM_CHECKSUM
:
case
SQLCOM_HA_READ
:
case
SQLCOM_SHOW_BINLOGS
:
...
...
sql/sql_parse.cc
View file @
dbc39ac3
...
...
@@ -27,6 +27,7 @@
#include "sp_head.h"
#include "sp.h"
#include "sp_cache.h"
#ifdef HAVE_OPENSSL
/*
...
...
@@ -3045,6 +3046,7 @@ mysql_execute_command(THD *thd)
goto
error
;
/* purecov: inspected */
thd
->
slow_command
=
TRUE
;
res
=
mysql_check_table
(
thd
,
first_table
,
&
lex
->
check_opt
);
sp_cache_invalidate
();
break
;
}
case
SQLCOM_ANALYZE
:
...
...
sql/sql_select.cc
View file @
dbc39ac3
...
...
@@ -12736,7 +12736,7 @@ int JOIN::rollup_send_data(uint idx)
ref_pointer_array_size
);
if
((
!
having
||
having
->
val_int
()))
{
if
(
send_records
<
unit
->
select_limit_cnt
&&
if
(
send_records
<
unit
->
select_limit_cnt
&&
do_send_rows
&&
result
->
send_data
(
rollup
.
fields
[
i
]))
return
1
;
send_records
++
;
...
...
support-files/mysql.spec.sh
View file @
dbc39ac3
...
...
@@ -214,7 +214,6 @@ Optional MySQL server binary that supports additional features like:
- CSV Storage Engine
- Example Storage Engine
- Federated Storage Engine
- MyISAM RAID
- User Defined Functions
(
UDFs
)
.
To activate this binary, just
install
this package
in
addition to
...
...
@@ -328,7 +327,6 @@ BuildMySQL "--enable-shared \
--with-berkeley-db
\
--with-innodb
\
--with-ndbcluster
\
--with-raid
\
--with-archive
\
--with-csv-storage-engine
\
--with-example-storage-engine
\
...
...
@@ -694,9 +692,14 @@ fi
# itself - note that they must be ordered by date (important when
# merging BK trees)
%changelog
*
Fri Mar 18 2005 Lenz Grimmer <lenz@mysql.com>
- Disabled RAID
in
the Max binares once and
for
all
(
it has finally been removed
from the
source
tree
)
*
Sun Feb 20 2005 Petr Chardin <petr@mysql.com>
- Install MySQL Instance Manager together with mysqld, toch mysqlmanager
- Install MySQL Instance Manager together with mysqld,
to
u
ch
mysqlmanager
password file
*
Mon Feb 14 2005 Lenz Grimmer <lenz@mysql.com>
...
...
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