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
6528be27
Commit
6528be27
authored
Jul 26, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/my50-m-bug20145
into neptunus.(none):/home/msvensson/mysql/mysql-5.0-maint
parents
b03b6c86
595fdd6b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
18 deletions
+32
-18
extra/perror.c
extra/perror.c
+15
-12
mysql-test/r/perror.result
mysql-test/r/perror.result
+2
-3
mysql-test/t/perror.test
mysql-test/t/perror.test
+14
-2
ndb/src/kernel/error/ndbd_exit_codes.c
ndb/src/kernel/error/ndbd_exit_codes.c
+1
-1
No files found.
extra/perror.c
View file @
6528be27
...
...
@@ -261,7 +261,7 @@ int main(int argc,char *argv[])
found
=
1
;
msg
=
0
;
}
else
else
#endif
msg
=
strerror
(
code
);
...
...
@@ -281,20 +281,23 @@ int main(int argc,char *argv[])
else
puts
(
msg
);
}
if
(
!
(
msg
=
get_ha_error_msg
(
code
)))
if
(
!
found
)
{
if
(
!
found
)
{
/* Error message still not found, look in handler error codes */
if
(
!
(
msg
=
get_ha_error_msg
(
code
)))
{
fprintf
(
stderr
,
"Illegal error code: %d
\n
"
,
code
);
error
=
1
;
}
}
else
{
if
(
verbose
)
printf
(
"MySQL error code %3d: %s
\n
"
,
code
,
msg
);
else
puts
(
msg
);
}
else
{
found
=
1
;
if
(
verbose
)
printf
(
"MySQL error code %3d: %s
\n
"
,
code
,
msg
);
else
puts
(
msg
);
}
}
}
}
...
...
mysql-test/r/perror.result
View file @
6528be27
MySQL error code 150: Foreign key constraint is incorrectly formed
Is a named type file
Didn't find key on read or update
Illegal ndb error code: 1186
Illegal error code: 1186
mysql-test/t/perror.test
View file @
6528be27
...
...
@@ -6,6 +6,18 @@ disable_query_log;
eval
select
LENGTH
(
"
$MY_PERROR
"
)
>
0
as
"have_perror"
;
enable_query_log
;
--
exec
$MY_PERROR
150
--
exec
$MY_PERROR
--
silent
120
--
exec
$MY_PERROR
150
>
/
dev
/
null
--
exec
$MY_PERROR
--
silent
120
>
/
dev
/
null
#
# Bug#16561 Unknown ERROR msg "ERROR 1186 (HY000): Binlog closed" by perror
#
# As long there is no error code 1186 defined by NDB
# we should get a message "Illegal ndb error code: 1186"
--
error
1
--
exec
$MY_PERROR
--
ndb
1186
2
>&
1
# As there is an error code defined for 1186, expect error
--
error
1
--
exec
$MY_PERROR
1186
2
>&
1
ndb/src/kernel/error/ndbd_exit_codes.c
View file @
6528be27
...
...
@@ -247,7 +247,7 @@ int ndbd_exit_string(int err_no, char *str, unsigned int size)
ndbd_exit_classification
cl
;
ndbd_exit_status
st
;
const
char
*
msg
=
ndbd_exit_message
(
err_no
,
&
cl
);
if
(
msg
[
0
]
!=
'\0'
)
if
(
msg
[
0
]
!=
'\0'
&&
cl
!=
XUE
)
{
const
char
*
cl_msg
=
ndbd_exit_classification_message
(
cl
,
&
st
);
const
char
*
st_msg
=
ndbd_exit_status_message
(
st
);
...
...
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