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
cf749a7a
Commit
cf749a7a
authored
Aug 31, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Resolve conflicts
parents
9e4d75d1
8d8fa0e3
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
350 additions
and
5 deletions
+350
-5
client/mysqldump.c
client/mysqldump.c
+8
-5
mysql-test/r/mysqldump.result
mysql-test/r/mysqldump.result
+292
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+50
-0
No files found.
client/mysqldump.c
View file @
cf749a7a
...
...
@@ -850,8 +850,8 @@ static int get_options(int *argc, char ***argv)
static
void
DB_error
(
MYSQL
*
mysql
,
const
char
*
when
)
{
DBUG_ENTER
(
"DB_error"
);
my_printf_error
(
0
,
"Got error: %d: %s %s"
,
MYF
(
0
)
,
mysql_errno
(
mysql
),
mysql_error
(
mysql
),
when
);
fprintf
(
stderr
,
"%s: Got error: %d: %s %s
\n
"
,
my_progname
,
mysql_errno
(
mysql
),
mysql_error
(
mysql
),
when
);
safe_exit
(
EX_MYSQLERR
);
DBUG_VOID_RETURN
;
}
/* DB_error */
...
...
@@ -879,9 +879,9 @@ static int mysql_query_with_error_report(MYSQL *mysql_con, MYSQL_RES **res,
if
(
mysql_query
(
mysql_con
,
query
)
||
(
res
&&
!
((
*
res
)
=
mysql_store_result
(
mysql_con
))))
{
my_printf_error
(
0
,
"Couldn't execute '%s': %s (%d)"
,
MYF
(
0
)
,
query
,
mysql_error
(
mysql_con
),
mysql_errno
(
mysql_con
));
safe_exit
(
EX_MYSQLERR
);
fprintf
(
stderr
,
"%s: Couldn't execute '%s': %s (%d)
\n
"
,
my_progname
,
query
,
mysql_error
(
mysql_con
),
mysql_errno
(
mysql_con
)
);
return
1
;
}
return
0
;
...
...
@@ -2234,7 +2234,10 @@ static void dump_table(char *table, char *db)
check_io
(
md_result_file
);
}
if
(
mysql_query_with_error_report
(
mysql
,
0
,
query
))
{
DB_error
(
mysql
,
"when retrieving data from server"
);
goto
err
;
}
if
(
quick
)
res
=
mysql_use_result
(
mysql
);
else
...
...
mysql-test/r/mysqldump.result
View file @
cf749a7a
This diff is collapsed.
Click to expand it.
mysql-test/t/mysqldump.test
View file @
cf749a7a
...
...
@@ -613,6 +613,56 @@ drop database db1;
--
exec
$MYSQL_MY_PRINT_DEFAULTS
--
config
-
file
=
$MYSQL_TEST_DIR
/
std_data
/
bug15328
.
cnf
mysqldump
#
# BUG #19025 mysqldump doesn't correctly dump "auto_increment = [int]"
#
create
table
`t1`
(
t1_name
varchar
(
255
)
default
null
,
t1_id
int
(
10
)
unsigned
not
null
auto_increment
,
key
(
t1_name
),
primary
key
(
t1_id
)
)
auto_increment
=
1000
default
charset
=
latin1
;
insert
into
t1
(
t1_name
)
values
(
'bla'
);
insert
into
t1
(
t1_name
)
values
(
'bla'
);
insert
into
t1
(
t1_name
)
values
(
'bla'
);
select
*
from
t1
;
show
create
table
`t1`
;
--
exec
$MYSQL_DUMP
--
skip
-
comments
test
t1
>
$MYSQLTEST_VARDIR
/
tmp
/
bug19025
.
sql
DROP
TABLE
`t1`
;
--
exec
$MYSQL
test
<
$MYSQLTEST_VARDIR
/
tmp
/
bug19025
.
sql
select
*
from
t1
;
show
create
table
`t1`
;
drop
table
`t1`
;
#
# Bug #18536: wrong table order
#
create
table
t1
(
a
int
);
create
table
t2
(
a
int
);
create
table
t3
(
a
int
);
--
error
6
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
force
--
no
-
data
test
t3
t1
non_existing
t2
drop
table
t1
,
t2
,
t3
;
#
# Bug #21288: mysqldump segmentation fault when using --where
#
create
table
t1
(
a
int
);
--
error
2
--
exec
$MYSQL_DUMP
--
skip
-
comments
--
force
test
t1
--
where
=
'xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
2
>&
1
drop
table
t1
;
--
echo
End
of
4.1
tests
#
# Bug #9558 mysqldump --no-data db t1 t2 format still dumps data
#
...
...
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