summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorunknown <kostja@oak.local>2003-09-03 18:07:00 +0400
committerunknown <kostja@oak.local>2003-09-03 18:07:00 +0400
commitff458939239b11cb88f6eef9c34c18276c3c87b5 (patch)
tree280d1707c98a878835029433b12e0373d084e392 /sql/protocol.cc
parentb74332ec6bd0882a5f328236fdc2a52b395ae2f1 (diff)
downloadmariadb-git-ff458939239b11cb88f6eef9c34c18276c3c87b5.tar.gz
Monty explanation for net_store_length(uint) put to the comment
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc
index 99d1e03c8a7..d1eb3460fc8 100644
--- a/sql/protocol.cc
+++ b/sql/protocol.cc
@@ -371,7 +371,13 @@ bool send_old_password_request(THD *thd)
#endif /* EMBEDDED_LIBRARY */
/*
- Faster net_store_length when we know length is a 32 bit integer
+ Faster net_store_length when we know that length is less than 65536.
+ We keep a separate version for that range because it's widely used in
+ libmysql.
+ uint is used as agrument type because of MySQL type conventions:
+ uint for 0..65536
+ ulong for 0..4294967296
+ ulonglong for bigger numbers.
*/
char *net_store_length(char *pkg, uint length)