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
13f0dc32
Commit
13f0dc32
authored
Sep 08, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
into deer.(none):/home/hf/work/mysql-4.0
parents
8aff7009
d8f676f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
client/mysqldump.c
client/mysqldump.c
+1
-1
client/mysqlimport.c
client/mysqlimport.c
+5
-4
No files found.
client/mysqldump.c
View file @
13f0dc32
...
...
@@ -307,7 +307,7 @@ static void write_header(FILE *sql_file, char *db_name)
fprintf
(
sql_file
,
"-- MySQL dump %s
\n
--
\n
"
,
DUMP_VERSION
);
fprintf
(
sql_file
,
"-- Host: %s Database: %s
\n
"
,
current_host
?
current_host
:
"localhost"
,
db_name
?
db_name
:
""
);
fputs
(
"--
-
------------------------------------------------------
\n
"
,
fputs
(
"--
------------------------------------------------------
\n
"
,
sql_file
);
fprintf
(
sql_file
,
"-- Server version
\t
%s
\n
"
,
mysql_get_server_info
(
&
mysql_connection
));
...
...
client/mysqlimport.c
View file @
13f0dc32
...
...
@@ -46,7 +46,7 @@ static char *opt_password=0, *current_user=0,
*
escaped
=
0
,
*
opt_columns
=
0
,
*
default_charset
;
static
uint
opt_mysql_port
=
0
;
static
my_string
opt_mysql_unix_port
=
0
;
static
my_string
opt_ignore_lines
=
0
;
static
longlong
opt_ignore_lines
=
-
1
;
#include <sslopt-vars.h>
static
struct
my_option
my_long_options
[]
=
...
...
@@ -90,7 +90,7 @@ static struct my_option my_long_options[] =
{
"ignore"
,
'i'
,
"If duplicate unique key was found, keep old row."
,
(
gptr
*
)
&
ignore
,
(
gptr
*
)
&
ignore
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"ignore-lines"
,
OPT_IGN_LINES
,
"Ignore first n lines of data infile."
,
(
gptr
*
)
&
opt_ignore_lines
,
(
gptr
*
)
&
opt_ignore_lines
,
0
,
GET_
STR
,
(
gptr
*
)
&
opt_ignore_lines
,
(
gptr
*
)
&
opt_ignore_lines
,
0
,
GET_
LL
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"lines-terminated-by"
,
OPT_LTB
,
"Lines in the i.file are terminated by ..."
,
(
gptr
*
)
&
lines_terminated
,
(
gptr
*
)
&
lines_terminated
,
0
,
GET_STR
,
...
...
@@ -290,8 +290,9 @@ static int write_to_table(char *filename, MYSQL *sock)
" OPTIONALLY ENCLOSED BY"
);
end
=
add_load_option
(
end
,
escaped
,
" ESCAPED BY"
);
end
=
add_load_option
(
end
,
lines_terminated
,
" LINES TERMINATED BY"
);
if
(
opt_ignore_lines
)
end
=
strmov
(
strmov
(
strmov
(
end
,
" IGNORE "
),
opt_ignore_lines
),
" LINES"
);
if
(
opt_ignore_lines
>=
0
)
end
=
strmov
(
longlong10_to_str
(
opt_ignore_lines
,
strmov
(
end
,
" IGNORE "
),
10
),
" LINES"
);
if
(
opt_columns
)
end
=
strmov
(
strmov
(
strmov
(
end
,
" ("
),
opt_columns
),
")"
);
*
end
=
'\0'
;
...
...
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