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
2ddc0691
Commit
2ddc0691
authored
May 16, 2013
by
Jon Olav Hauglid
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.1 to mysql-5.5
parents
9df655d4
9d58e807
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
extra/comp_err.c
extra/comp_err.c
+19
-1
No files found.
extra/comp_err.c
View file @
2ddc0691
/*
Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2000, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -31,6 +31,7 @@
#include <my_getopt.h>
#include <assert.h>
#include <my_dir.h>
#include <mysql_version.h>
#define MAX_ROWS 1000
#define HEADER_LENGTH 32
/* Length of header in errmsg.sys */
...
...
@@ -175,6 +176,23 @@ int main(int argc, char *argv[])
fprintf
(
stderr
,
"Failed to parse input file %s
\n
"
,
TXTFILE
);
DBUG_RETURN
(
1
);
}
#if MYSQL_VERSION_ID >= 50100 && MYSQL_VERSION_ID < 50500
/* Number of error messages in 5.1 - do not change this number! */
#define MYSQL_OLD_GA_ERROR_MESSAGE_COUNT 641
#elif MYSQL_VERSION_ID >= 50500 && MYSQL_VERSION_ID < 50600
/* Number of error messages in 5.5 - do not change this number! */
#define MYSQL_OLD_GA_ERROR_MESSAGE_COUNT 728
#endif
#if MYSQL_OLD_GA_ERROR_MESSAGE_COUNT
if
(
row_count
!=
MYSQL_OLD_GA_ERROR_MESSAGE_COUNT
)
{
fprintf
(
stderr
,
"Can only add new error messages to latest GA. "
);
fprintf
(
stderr
,
"Use ER_UNKNOWN_ERROR instead.
\n
"
);
fprintf
(
stderr
,
"Expected %u messages, found %u.
\n
"
,
MYSQL_OLD_GA_ERROR_MESSAGE_COUNT
,
row_count
);
DBUG_RETURN
(
1
);
}
#endif
if
(
lang_head
==
NULL
||
error_head
==
NULL
)
{
fprintf
(
stderr
,
"Failed to parse input file %s
\n
"
,
TXTFILE
);
...
...
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