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
44db958b
Commit
44db958b
authored
Dec 04, 2002
by
serg@serg.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new client error added: CR_MALFORMED_PACKET
parent
b4302479
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
include/errmsg.h
include/errmsg.h
+5
-3
libmysql/errmsg.c
libmysql/errmsg.c
+7
-4
libmysql/libmysql.c
libmysql/libmysql.c
+1
-1
No files found.
include/errmsg.h
View file @
44db958b
...
@@ -28,7 +28,7 @@ extern const char *client_errors[]; /* Error messages */
...
@@ -28,7 +28,7 @@ extern const char *client_errors[]; /* Error messages */
#define CR_MIN_ERROR 2000
/* For easier client code */
#define CR_MIN_ERROR 2000
/* For easier client code */
#define CR_MAX_ERROR 2999
#define CR_MAX_ERROR 2999
#if defined(OS2) && defined(
MYSQL_SERVER)
#if defined(OS2) && defined(MYSQL_SERVER)
#define CER(X) client_errors[(X)-CR_MIN_ERROR]
#define CER(X) client_errors[(X)-CR_MIN_ERROR]
#else
#else
#define ER(X) client_errors[(X)-CR_MIN_ERROR]
#define ER(X) client_errors[(X)-CR_MIN_ERROR]
...
@@ -62,3 +62,5 @@ extern const char *client_errors[]; /* Error messages */
...
@@ -62,3 +62,5 @@ extern const char *client_errors[]; /* Error messages */
#define CR_PROBE_SLAVE_CONNECT 2024
#define CR_PROBE_SLAVE_CONNECT 2024
#define CR_PROBE_MASTER_CONNECT 2025
#define CR_PROBE_MASTER_CONNECT 2025
#define CR_SSL_CONNECTION_ERROR 2026
#define CR_SSL_CONNECTION_ERROR 2026
#define CR_MALFORMED_PACKET 2027
libmysql/errmsg.c
View file @
44db958b
...
@@ -50,7 +50,8 @@ const char *client_errors[]=
...
@@ -50,7 +50,8 @@ const char *client_errors[]=
"Error on SHOW SLAVE HOSTS:"
,
"Error on SHOW SLAVE HOSTS:"
,
"Error connecting to slave:"
,
"Error connecting to slave:"
,
"Error connecting to master:"
,
"Error connecting to master:"
,
"SSL connection error"
"SSL connection error"
,
"Malformed packet"
};
};
/* Start of code added by Roberto M. Serqueira - martinsc@uol.com.br - 05.24.2001 */
/* Start of code added by Roberto M. Serqueira - martinsc@uol.com.br - 05.24.2001 */
...
@@ -84,7 +85,8 @@ const char *client_errors[]=
...
@@ -84,7 +85,8 @@ const char *client_errors[]=
"Error on SHOW SLAVE HOSTS:"
,
"Error on SHOW SLAVE HOSTS:"
,
"Error connecting to slave:"
,
"Error connecting to slave:"
,
"Error connecting to master:"
,
"Error connecting to master:"
,
"SSL connection error"
"SSL connection error"
,
"Malformed packet"
};
};
#else
/* ENGLISH */
#else
/* ENGLISH */
...
@@ -116,7 +118,8 @@ const char *client_errors[]=
...
@@ -116,7 +118,8 @@ const char *client_errors[]=
"Error on SHOW SLAVE HOSTS:"
,
"Error on SHOW SLAVE HOSTS:"
,
"Error connecting to slave:"
,
"Error connecting to slave:"
,
"Error connecting to master:"
,
"Error connecting to master:"
,
"SSL connection error"
"SSL connection error"
,
"Malformed packet"
};
};
#endif
#endif
...
...
libmysql/libmysql.c
View file @
44db958b
...
@@ -985,7 +985,7 @@ static MYSQL_DATA *read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
...
@@ -985,7 +985,7 @@ static MYSQL_DATA *read_rows(MYSQL *mysql,MYSQL_FIELD *mysql_fields,
if
(
to
+
len
>
end_to
)
if
(
to
+
len
>
end_to
)
{
{
free_rows
(
result
);
free_rows
(
result
);
net
->
last_errno
=
CR_
UNKNOWN_ERROR
;
net
->
last_errno
=
CR_
MALFORMED_PACKET
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
...
...
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