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
9b646221
Commit
9b646221
authored
Feb 18, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-4.1-8517
into mysql.com:/home/jimw/my/mysql-4.1-clean
parents
6feefa2f
3ece9053
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
extra/perror.c
extra/perror.c
+7
-6
No files found.
extra/perror.c
View file @
9b646221
...
...
@@ -245,16 +245,17 @@ int main(int argc,char *argv[])
msg
=
strerror
(
code
);
/*
Don't print message for not existing error messages or for
unknown
errors. We test for 'Uknown Errors' just as an
extra safety for Netware
We don't print the OS error message if it is the same as the
unknown
_error message we retrieved above, or it starts with
'Unknown Error' (without regard to case).
*/
if
(
msg
&&
strcmp
(
msg
,
"Unknown Error"
)
&&
if
(
msg
&&
my_strnncoll
(
&
my_charset_latin1
,
msg
,
13
,
"Unknown Error"
,
13
)
&&
(
!
unknown_error
||
strcmp
(
msg
,
unknown_error
)))
{
found
=
1
;
if
(
verbose
)
printf
(
"
E
rror code %3d: %s
\n
"
,
code
,
msg
);
printf
(
"
OS e
rror code %3d: %s
\n
"
,
code
,
msg
);
else
puts
(
msg
);
}
...
...
@@ -269,7 +270,7 @@ int main(int argc,char *argv[])
else
{
if
(
verbose
)
printf
(
"MySQL error
: %3d =
%s
\n
"
,
code
,
msg
);
printf
(
"MySQL error
code %3d:
%s
\n
"
,
code
,
msg
);
else
puts
(
msg
);
}
...
...
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