summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorhf@deer.(none) <>2003-07-04 13:21:14 +0500
committerhf@deer.(none) <>2003-07-04 13:21:14 +0500
commit9d4bae335c59864350297c1f5111d0b0c45174ba (patch)
tree8d9d48e6d2ba9a4f0332cb4bda4fe3dbe23651d6 /sql/protocol.cc
parent110b497cc32db6cafb65c2661cb459c491377319 (diff)
parentc224b55835a01ad38f6b978fe1e23b9363bae1cc (diff)
downloadmariadb-git-9d4bae335c59864350297c1f5111d0b0c45174ba.tar.gz
Resolving conflicts
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc35
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
*/