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
a717c687
Commit
a717c687
authored
Jun 01, 2006
by
tnurnberg@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into mysql.com:/home/mysql-5.0-maint-18462
parents
433c57d9
8c243736
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
0 deletions
+43
-0
client/mysqldump.c
client/mysqldump.c
+3
-0
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+19
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+21
-0
No files found.
client/mysqldump.c
View file @
a717c687
...
...
@@ -1554,6 +1554,9 @@ static uint get_table_structure(char *table, char *db, char *table_type,
}
mysql_free_result
(
result
);
if
(
path
)
my_fclose
(
sql_file
,
MYF
(
MY_WME
));
was_views
=
1
;
DBUG_RETURN
(
0
);
}
...
...
mysql-test/r/mysqldump.result
View file @
a717c687
...
...
@@ -2756,6 +2756,25 @@ end AFTER # root@localhost
drop trigger tr1;
drop trigger tr2;
drop table t1, t2;
create table t (qty int, price int);
insert into t values(3, 50);
insert into t values(5, 51);
create view v1 as select qty, price, qty*price as value from t;
create view v2 as select qty from v1;
mysqldump {
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `v1` AS select `t`.`qty` AS `qty`,`t`.`price` AS `price`,(`t`.`qty` * `t`.`price`) AS `value` from `t` */;
} mysqldump {
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `v2` AS select `v1`.`qty` AS `qty` from `v1` */;
} mysqldump
drop view v1;
drop view v2;
drop table t;
/*!50003 CREATE FUNCTION `f`() RETURNS bigint(20)
return 42 */|
/*!50003 CREATE PROCEDURE `p`()
...
...
mysql-test/t/mysqldump.test
View file @
a717c687
...
...
@@ -1145,6 +1145,27 @@ drop trigger tr2;
drop
table
t1
,
t2
;
#
# Bug#18462 mysqldump does not dump view structures correctly
#
#
create
table
t
(
qty
int
,
price
int
);
insert
into
t
values
(
3
,
50
);
insert
into
t
values
(
5
,
51
);
create
view
v1
as
select
qty
,
price
,
qty
*
price
as
value
from
t
;
create
view
v2
as
select
qty
from
v1
;
--
echo
mysqldump
{
--
exec
$MYSQL_DUMP
--
compact
-
F
--
tab
.
test
--
exec
cat
v1
.
sql
--
echo
}
mysqldump
{
--
exec
cat
v2
.
sql
--
echo
}
mysqldump
--
rm
v
.
sql
t
.
sql
t
.
txt
drop
view
v1
;
drop
view
v2
;
drop
table
t
;
#
# Bug#14857 Reading dump files with single statement stored routines fails.
# fixed by patch for bug#16878
...
...
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