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
5722aac6
Commit
5722aac6
authored
Jul 19, 2012
by
Venkata Sidagam
Browse files
Options
Browse Files
Download
Plain Diff
Bug #12615411 - server side help doesn't work as first statement
Merged from mysql-5.1 to mysql-5.5
parents
b4fe41bb
0e8e7c76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
client/mysql.cc
client/mysql.cc
+11
-3
No files found.
client/mysql.cc
View file @
5722aac6
...
...
@@ -2772,7 +2772,7 @@ static int com_server_help(String *buffer __attribute__((unused)),
char
*
line
__attribute__
((
unused
)),
char
*
help_arg
)
{
MYSQL_ROW
cur
;
const
char
*
server_cmd
=
buffer
->
ptr
()
;
const
char
*
server_cmd
;
char
cmd_buf
[
100
+
1
];
MYSQL_RES
*
result
;
int
error
;
...
...
@@ -2787,9 +2787,12 @@ static int com_server_help(String *buffer __attribute__((unused)),
*++
end_arg
=
'\0'
;
}
(
void
)
strxnmov
(
cmd_buf
,
sizeof
(
cmd_buf
),
"help '"
,
help_arg
,
"'"
,
NullS
);
server_cmd
=
cmd_buf
;
}
else
(
void
)
strxnmov
(
cmd_buf
,
sizeof
(
cmd_buf
),
"help "
,
help_arg
,
NullS
);
server_cmd
=
cmd_buf
;
if
(
!
status
.
batch
)
{
old_buffer
=
*
buffer
;
...
...
@@ -2857,6 +2860,11 @@ static int com_server_help(String *buffer __attribute__((unused)),
else
{
put_info
(
"
\n
Nothing found"
,
INFO_INFO
);
if
(
strncasecmp
(
server_cmd
,
"help 'contents'"
,
15
)
==
0
)
{
put_info
(
"
\n
Please check if 'help tables' are loaded.
\n
"
,
INFO_INFO
);
goto
err
;
}
put_info
(
"Please try to run 'help contents' for a list of all accessible topics
\n
"
,
INFO_INFO
);
}
}
...
...
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