diff options
author | sergefp@mysql.com <> | 2005-04-27 22:49:42 +0400 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-04-27 22:49:42 +0400 |
commit | 4732c3b5160143192711db33ce95a61351563488 (patch) | |
tree | 938bbf5cc2fb93a77945acf676360422b24b7448 /sql/protocol.cc | |
parent | 254bb2570cbf27dd05fc22993f5b279e574dbb17 (diff) | |
parent | 9fbdd4e03fe36da1a9948d5961b8d8d9f42f80a8 (diff) | |
download | mariadb-git-4732c3b5160143192711db33ce95a61351563488.tar.gz |
Merge mysql.com:/home/psergey/mysql-4.1-bug9298
into mysql.com:/home/psergey/mysql-5.0-bug9298-merge
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 22f1249ca28..2ea435d84ef 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -820,7 +820,7 @@ bool Protocol_simple::store_long(longlong from) #endif char buff[20]; return net_store_data((char*) buff, - (uint) (int10_to_str((int) from,buff, -10)-buff)); + (uint) (int10_to_str((int)from,buff, (from <0)?-10:10)-buff)); } |