diff options
author | hf@deer.(none) <> | 2003-06-18 15:58:57 +0500 |
---|---|---|
committer | hf@deer.(none) <> | 2003-06-18 15:58:57 +0500 |
commit | 7e1ce534c96063723a0d7459da98efc83bd5ddf5 (patch) | |
tree | f2de81966600f6bb3e831afc62a7ed1d9babbf42 /libmysql/libmysql.c | |
parent | 66ecacb3c36f5fbe81f02b3594a3cc96a2afeea1 (diff) | |
download | mariadb-git-7e1ce534c96063723a0d7459da98efc83bd5ddf5.tar.gz |
SCRUM
including client code into embedded server
code to guess what library to use added
net_field_length moved to pack.c
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r-- | libmysql/libmysql.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index 495647bf302..1a5e91045ae 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -1730,39 +1730,6 @@ static void store_param_type(NET *net, uint type) net->write_pos+=2; } -/* - Store the length of parameter data - (Same function as in sql/net_pkg.cc) -*/ - -char * -net_store_length(char *pkg, ulong length) -{ - uchar *packet=(uchar*) pkg; - if (length < 251) - { - *packet=(uchar) length; - return (char*) packet+1; - } - /* 251 is reserved for NULL */ - if (length < 65536L) - { - *packet++=252; - int2store(packet,(uint) length); - return (char*) packet+2; - } - if (length < 16777216L) - { - *packet++=253; - int3store(packet,(ulong) length); - return (char*) packet+3; - } - *packet++=254; - int8store(packet, (ulonglong) length); - return (char*) packet+9; -} - - /**************************************************************************** Functions to store parameter data from a prepared statement. |