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
98cc7412
Commit
98cc7412
authored
May 09, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
82067348
a2eab3f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
client/mysql.cc
client/mysql.cc
+9
-1
No files found.
client/mysql.cc
View file @
98cc7412
...
...
@@ -448,6 +448,14 @@ int main(int argc,char *argv[])
MYF
(
MY_WME
));
if
(
histfile
)
sprintf
(
histfile
,
"%s/.mysql_history"
,
getenv
(
"HOME"
));
char
link_name
[
FN_REFLEN
];
if
(
my_readlink
(
link_name
,
histfile
,
0
)
==
0
&&
strncmp
(
link_name
,
"/dev/null"
,
10
)
==
0
)
{
/* The .mysql_history file is a symlink to /dev/null, don't use it */
my_free
(
histfile
,
MYF
(
MY_ALLOW_ZERO_PTR
));
histfile
=
0
;
}
}
if
(
histfile
)
{
...
...
@@ -484,7 +492,7 @@ sig_handler mysql_end(int sig)
{
mysql_close
(
&
mysql
);
#ifdef HAVE_READLINE
if
(
!
status
.
batch
&&
!
quick
&&
!
opt_html
&&
!
opt_xml
)
if
(
!
status
.
batch
&&
!
quick
&&
!
opt_html
&&
!
opt_xml
&&
histfile
)
{
/* write-history */
if
(
verbose
)
...
...
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