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
78dca2de
Commit
78dca2de
authored
Feb 15, 2002
by
jani@hynda.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed too bugs in MySQL client 'mysql', interactive command 'tee'.
parent
b0f98a30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
client/mysql.cc
client/mysql.cc
+14
-8
No files found.
BitKeeper/etc/logging_ok
View file @
78dca2de
...
@@ -12,3 +12,4 @@ paul@central.snake.net
...
@@ -12,3 +12,4 @@ paul@central.snake.net
sasha@mysql.sashanet.com
sasha@mysql.sashanet.com
serg@serg.mysql.com
serg@serg.mysql.com
heikki@hundin.mysql.fi
heikki@hundin.mysql.fi
jani@hynda.mysql.fi
client/mysql.cc
View file @
78dca2de
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#include "my_readline.h"
#include "my_readline.h"
#include <signal.h>
#include <signal.h>
const
char
*
VER
=
"11.1
6
"
;
const
char
*
VER
=
"11.1
7
"
;
/* Don't try to make a nice table if the data is too big */
/* Don't try to make a nice table if the data is too big */
#define MAX_COLUMN_LENGTH 1024
#define MAX_COLUMN_LENGTH 1024
...
@@ -1776,10 +1776,17 @@ com_tee(String *buffer, char *line __attribute__((unused)))
...
@@ -1776,10 +1776,17 @@ com_tee(String *buffer, char *line __attribute__((unused)))
{
{
while
(
isspace
(
*
param
))
while
(
isspace
(
*
param
))
param
++
;
param
++
;
end
=
strmake
(
file_name
,
param
,
sizeof
(
file_name
)
-
1
);
end
=
strend
(
param
);
while
(
end
>
file_name
&&
(
isspace
(
end
[
-
1
])
||
iscntrl
(
end
[
-
1
])))
while
(
end
>
file_name
&&
(
isspace
(
end
[
-
1
])
||
iscntrl
(
end
[
-
1
])))
end
--
;
end
--
;
end
[
0
]
=
0
;
end
[
0
]
=
0
;
if
((
*
(
end
-
1
)
==
'"'
&&
*
param
==
'"'
)
||
(
*
(
end
-
1
)
==
'\''
&&
*
param
==
'\''
))
{
*--
end
=
0
;
param
++
;
}
strmake
(
file_name
,
param
,
sizeof
(
file_name
)
-
1
);
strmov
(
outfile
,
file_name
);
strmov
(
outfile
,
file_name
);
}
}
if
(
!
strlen
(
outfile
))
if
(
!
strlen
(
outfile
))
...
@@ -1787,11 +1794,10 @@ com_tee(String *buffer, char *line __attribute__((unused)))
...
@@ -1787,11 +1794,10 @@ com_tee(String *buffer, char *line __attribute__((unused)))
printf
(
"No outfile specified!
\n
"
);
printf
(
"No outfile specified!
\n
"
);
return
0
;
return
0
;
}
}
if
(
!
opt_outfile
)
if
(
opt_outfile
)
{
end_tee
();
init_tee
();
init_tee
();
opt_outfile
=
1
;
opt_outfile
=
1
;
}
tee_fprintf
(
stdout
,
"Logging to file '%s'
\n
"
,
outfile
);
tee_fprintf
(
stdout
,
"Logging to file '%s'
\n
"
,
outfile
);
return
0
;
return
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