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
a50d87da
Commit
a50d87da
authored
Feb 17, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix after review
parent
76323715
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysqlimport.c
client/mysqlimport.c
+4
-4
No files found.
client/mysqlimport.c
View file @
a50d87da
...
...
@@ -381,10 +381,10 @@ static void lock_table(MYSQL *mysql, int tablecount, char **raw_tablename)
static
MYSQL
*
db_connect
(
char
*
host
,
char
*
database
,
static
MYSQL
*
db_connect
(
char
*
host
,
char
*
database
,
char
*
user
,
char
*
passwd
)
{
MYSQL
*
mysql
;
MYSQL
*
mysql
;
if
(
verbose
)
fprintf
(
stdout
,
"Connecting to %s
\n
"
,
host
?
host
:
"localhost"
);
if
(
!
(
mysql
=
mysql_init
(
NULL
)))
...
...
@@ -516,7 +516,7 @@ pthread_handler_t worker_thread(void *arg)
{
int
error
;
char
*
raw_table_name
=
(
char
*
)
arg
;
MYSQL
*
mysql
;
MYSQL
*
mysql
;
if
(
!
(
mysql
=
db_connect
(
current_host
,
current_db
,
current_user
,
opt_password
)))
{
goto
error
;
...
...
@@ -609,7 +609,7 @@ loop_label:
}
else
{
MYSQL
*
mysql
=
0
;
MYSQL
*
mysql
=
0
;
if
(
!
(
mysql
=
db_connect
(
current_host
,
current_db
,
current_user
,
opt_password
)))
{
free_defaults
(
argv_to_free
);
...
...
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