diff options
author | unknown <hf@deer.(none)> | 2003-07-04 13:21:14 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-07-04 13:21:14 +0500 |
commit | 7248ab7b59ca11b83cb9543a3050499157d8d5fc (patch) | |
tree | 8d9d48e6d2ba9a4f0332cb4bda4fe3dbe23651d6 /sql/protocol.cc | |
parent | c2a4a0ec552e3000b45c6ef2b4148fb0845d5f41 (diff) | |
parent | 14fd42e13ff008247ede01c48780539f23931e2d (diff) | |
download | mariadb-git-7248ab7b59ca11b83cb9543a3050499157d8d5fc.tar.gz |
Resolving conflicts
BitKeeper/etc/logging_ok:
auto-union
client/mysqltest.c:
Auto merged
sql-common/client.c:
Auto merged
sql/protocol.cc:
Auto merged
sql/sql_client.cc:
Auto merged
include/mysql.h:
Merging (prolly it's the mistake)
libmysqld/libmysqld.c:
This code seems to be unnecessary
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 1a1d1f0a585..9fc2a1a676c 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -235,7 +235,6 @@ net_printf(THD *thd, uint errcode, ...) DBUG_VOID_RETURN; } - /* Return ok to the client. @@ -350,40 +349,6 @@ send_eof(THD *thd, bool no_flush) } #endif /* EMBEDDED_LIBRARY */ - -/**************************************************************************** - Store a field length in logical packet - This is used to code the string length for normal protocol -****************************************************************************/ - -char * -net_store_length(char *pkg, ulonglong length) -{ - uchar *packet=(uchar*) pkg; - if (length < LL(251)) - { - *packet=(uchar) length; - return (char*) packet+1; - } - /* 251 is reserved for NULL */ - if (length < LL(65536)) - { - *packet++=252; - int2store(packet,(uint) length); - return (char*) packet+2; - } - if (length < LL(16777216)) - { - *packet++=253; - int3store(packet,(ulong) length); - return (char*) packet+3; - } - *packet++=254; - int8store(packet,length); - return (char*) packet+8; -} - - /* Faster net_store_length when we know length is a 32 bit integer */ |