diff options
author | unknown <tnurnberg@white.intern.koehntopp.de> | 2007-11-30 12:44:28 +0100 |
---|---|---|
committer | unknown <tnurnberg@white.intern.koehntopp.de> | 2007-11-30 12:44:28 +0100 |
commit | a5efa43c7c7f2495fa0707ed6fef0088c2a318f5 (patch) | |
tree | 094e536f4bd2c4259c4e4fcafcd5368684f41003 /sql/protocol.cc | |
parent | d5ab58861ba76315c442c2045b493de7e7f8e4b2 (diff) | |
parent | 7c0db983ad8eb8e1d37cf8468bbfd32de87a14ad (diff) | |
download | mariadb-git-a5efa43c7c7f2495fa0707ed6fef0088c2a318f5.tar.gz |
Merge mysql.com:/misc/mysql/32707/41-32707
into mysql.com:/misc/mysql/32707/50-32707
sql/protocol.cc:
manual merge
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 2bdbe83eea1..994aacf5d46 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -409,7 +409,10 @@ void net_send_error_packet(THD *thd, uint sql_errno, const char *err) { NET *net= &thd->net; uint length; - char buff[MYSQL_ERRMSG_SIZE+2], *pos; + /* + buff[]: sql_errno:2 + ('#':1 + SQLSTATE_LENGTH:5) + MYSQL_ERRMSG_SIZE:512 + */ + char buff[2+1+SQLSTATE_LENGTH+MYSQL_ERRMSG_SIZE], *pos; DBUG_ENTER("send_error_packet"); |