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
8c1c1664
Commit
8c1c1664
authored
Jun 06, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
parents
e43cbebc
fb533312
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
98 additions
and
1 deletion
+98
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+40
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+44
-0
netware/BUILD/compile-linux-tools
netware/BUILD/compile-linux-tools
+6
-0
netware/BUILD/compile-netware-END
netware/BUILD/compile-netware-END
+5
-0
netware/BUILD/mwenv
netware/BUILD/mwenv
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
mysql-test/r/sp.result
View file @
8c1c1664
...
@@ -3138,4 +3138,44 @@ x
...
@@ -3138,4 +3138,44 @@ x
x
x
3
3
drop procedure bug10961|
drop procedure bug10961|
DROP PROCEDURE IF EXISTS bug6866|
DROP VIEW IF EXISTS tv|
Warnings:
Note 1051 Unknown table 'test.tv'
DROP TABLE IF EXISTS tt1,tt2,tt3|
Warnings:
Note 1051 Unknown table 'tt1'
Note 1051 Unknown table 'tt2'
Note 1051 Unknown table 'tt3'
CREATE TABLE tt1 (a1 int, a2 int, a3 int, data varchar(10))|
CREATE TABLE tt2 (a2 int, data2 varchar(10))|
CREATE TABLE tt3 (a3 int, data3 varchar(10))|
INSERT INTO tt1 VALUES (1, 1, 4, 'xx')|
INSERT INTO tt2 VALUES (1, 'a')|
INSERT INTO tt2 VALUES (2, 'b')|
INSERT INTO tt2 VALUES (3, 'c')|
INSERT INTO tt3 VALUES (4, 'd')|
INSERT INTO tt3 VALUES (5, 'e')|
INSERT INTO tt3 VALUES (6, 'f')|
CREATE VIEW tv AS
SELECT tt1.*, tt2.data2, tt3.data3
FROM tt1 INNER JOIN tt2 ON tt1.a2 = tt2.a2
LEFT JOIN tt3 ON tt1.a3 = tt3.a3
ORDER BY tt1.a1, tt2.a2, tt3.a3|
CREATE PROCEDURE bug6866 (_a1 int)
BEGIN
SELECT * FROM tv WHERE a1 = _a1;
END|
CALL bug6866(1)|
a1 a2 a3 data data2 data3
1 1 4 xx a d
CALL bug6866(1)|
a1 a2 a3 data data2 data3
1 1 4 xx a d
CALL bug6866(1)|
a1 a2 a3 data data2 data3
1 1 4 xx a d
DROP PROCEDURE bug6866;
DROP VIEW tv|
DROP TABLE tt1, tt2, tt3|
drop table t1,t2;
drop table t1,t2;
mysql-test/t/sp.test
View file @
8c1c1664
...
@@ -3848,6 +3848,50 @@ call bug10961()|
...
@@ -3848,6 +3848,50 @@ call bug10961()|
drop
procedure
bug10961
|
drop
procedure
bug10961
|
#
# BUG #6866: Second call of a stored procedure using a view with on expressions
#
--
disable_warnings
DROP
PROCEDURE
IF
EXISTS
bug6866
|
--
enable_warnings
DROP
VIEW
IF
EXISTS
tv
|
DROP
TABLE
IF
EXISTS
tt1
,
tt2
,
tt3
|
CREATE
TABLE
tt1
(
a1
int
,
a2
int
,
a3
int
,
data
varchar
(
10
))
|
CREATE
TABLE
tt2
(
a2
int
,
data2
varchar
(
10
))
|
CREATE
TABLE
tt3
(
a3
int
,
data3
varchar
(
10
))
|
INSERT
INTO
tt1
VALUES
(
1
,
1
,
4
,
'xx'
)
|
INSERT
INTO
tt2
VALUES
(
1
,
'a'
)
|
INSERT
INTO
tt2
VALUES
(
2
,
'b'
)
|
INSERT
INTO
tt2
VALUES
(
3
,
'c'
)
|
INSERT
INTO
tt3
VALUES
(
4
,
'd'
)
|
INSERT
INTO
tt3
VALUES
(
5
,
'e'
)
|
INSERT
INTO
tt3
VALUES
(
6
,
'f'
)
|
CREATE
VIEW
tv
AS
SELECT
tt1
.*
,
tt2
.
data2
,
tt3
.
data3
FROM
tt1
INNER
JOIN
tt2
ON
tt1
.
a2
=
tt2
.
a2
LEFT
JOIN
tt3
ON
tt1
.
a3
=
tt3
.
a3
ORDER
BY
tt1
.
a1
,
tt2
.
a2
,
tt3
.
a3
|
CREATE
PROCEDURE
bug6866
(
_a1
int
)
BEGIN
SELECT
*
FROM
tv
WHERE
a1
=
_a1
;
END
|
CALL
bug6866
(
1
)
|
CALL
bug6866
(
1
)
|
CALL
bug6866
(
1
)
|
DROP
PROCEDURE
bug6866
;
DROP
VIEW
tv
|
DROP
TABLE
tt1
,
tt2
,
tt3
|
#
#
# BUG#NNNN: New bug synopsis
# BUG#NNNN: New bug synopsis
...
...
netware/BUILD/compile-linux-tools
View file @
8c1c1664
...
@@ -30,6 +30,10 @@ rm -f */*.linux
...
@@ -30,6 +30,10 @@ rm -f */*.linux
# build tools only
# build tools only
make clean all-local
make clean all-local
# Create mysql_version.h which was deleted my previous step
./config.status include/mysql_version.h
(
cd
dbug
;
make libdbug.a
)
(
cd
dbug
;
make libdbug.a
)
(
cd
strings
;
make libmystrings.a
)
(
cd
strings
;
make libmystrings.a
)
(
cd
mysys
;
make libmysys.a
)
(
cd
mysys
;
make libmysys.a
)
...
@@ -56,3 +60,5 @@ cp libmysql_r/conf_to_src libmysql_r/conf_to_src.linux
...
@@ -56,3 +60,5 @@ cp libmysql_r/conf_to_src libmysql_r/conf_to_src.linux
cp
sql/gen_lex_hash sql/gen_lex_hash.linux
cp
sql/gen_lex_hash sql/gen_lex_hash.linux
cp
strings/conf_to_src strings/conf_to_src.linux
cp
strings/conf_to_src strings/conf_to_src.linux
# Delete mysql_version.h
rm
-f
include/mysql_version.h
netware/BUILD/compile-netware-END
View file @
8c1c1664
...
@@ -22,6 +22,11 @@ rm -rf Makefile.in.bk
...
@@ -22,6 +22,11 @@ rm -rf Makefile.in.bk
# run auto tools
# run auto tools
.
$path
/compile-AUTOTOOLS
.
$path
/compile-AUTOTOOLS
# For NetWare there is no comp_err but comp_err.linux
sed
-e
"s/comp_err/comp_err.linux/g"
extra/Makefile.am
>
extra/Makefile.am.
$$
sed
-e
"s/replace comp_err.linux/replace comp_err/g"
extra/Makefile.am.
$$
>
extra/Makefile.am
rm
extra/Makefile.am.
$$
# configure
# configure
./configure
$base_configs
$extra_configs
./configure
$base_configs
$extra_configs
...
...
netware/BUILD/mwenv
View file @
8c1c1664
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
# the default is "F:/mydev"
# the default is "F:/mydev"
export
MYDEV
=
"F:/mydev"
export
MYDEV
=
"F:/mydev"
export
MWCNWx86Includes
=
"
$MYDEV
/libc/include;
$MYDEV
/fs64/headers;
$MYDEV
/zlib-1.1.4;
$MYDEV
"
export
MWCNWx86Includes
=
"
$MYDEV
/libc/include;
$MYDEV
/fs64/headers;
$MYDEV
/zlib-1.1.4;
$MYDEV
/mysql-VERSION/include;
$MYDEV
"
export
MWNWx86Libraries
=
"
$MYDEV
/libc/imports;
$MYDEV
/mw/lib;
$MYDEV
/fs64/imports;
$MYDEV
/zlib-1.1.4;
$MYDEV
/openssl;
$MYDEV
/mysql-VERSION/netware/BUILD"
export
MWNWx86Libraries
=
"
$MYDEV
/libc/imports;
$MYDEV
/mw/lib;
$MYDEV
/fs64/imports;
$MYDEV
/zlib-1.1.4;
$MYDEV
/openssl;
$MYDEV
/mysql-VERSION/netware/BUILD"
export
MWNWx86LibraryFiles
=
"libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib;libz.a;neb.imp;zPublics.imp;knetware.imp"
export
MWNWx86LibraryFiles
=
"libcpre.o;libc.imp;netware.imp;mwcrtl.lib;mwcpp.lib;libz.a;neb.imp;zPublics.imp;knetware.imp"
...
...
sql/sql_select.cc
View file @
8c1c1664
...
@@ -7384,6 +7384,8 @@ simplify_joins(JOIN *join, List<TABLE_LIST> *join_list, COND *conds, bool top)
...
@@ -7384,6 +7384,8 @@ simplify_joins(JOIN *join, List<TABLE_LIST> *join_list, COND *conds, bool top)
}
}
else
else
{
{
if
(
!
(
table
->
prep_on_expr
))
table
->
prep_on_expr
=
table
->
on_expr
;
used_tables
=
table
->
table
->
map
;
used_tables
=
table
->
table
->
map
;
if
(
conds
)
if
(
conds
)
not_null_tables
=
conds
->
not_null_tables
();
not_null_tables
=
conds
->
not_null_tables
();
...
...
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