diff options
author | unknown <msvensson@neptunus.(none)> | 2005-04-13 12:22:20 +0200 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2005-04-13 12:22:20 +0200 |
commit | 2189e5e7bd8530eeb1f866a6304651f54cdcad75 (patch) | |
tree | 0c4e2952b0743607c4188361b2f0b86fca004c16 /sql/protocol.cc | |
parent | 5630f0731ab020471108c67e7ae962ba6eaef625 (diff) | |
download | mariadb-git-2189e5e7bd8530eeb1f866a6304651f54cdcad75.tar.gz |
BUG#9391 mysqlshow prints incorrect "rows" information
- Removed use of mysql->extra_info
- Removed unused function send_records_num
VC++Files/winmysqladmin/mysql.h:
Comment extra_info as not used anymore
client/mysqlshow.c:
Remove use of extra info. Instead read number of records in table using SELECT COUNT(*)
include/mysql.h:
Comment extra_info as not used anymore
libmysqld/lib_sql.cc:
Removed unused function send_records_num
sql-common/client.c:
Remove use of extra_info since number of records is not sent in the protocol anymore
sql/protocol.cc:
Removed unused function send_records_num
sql/protocol.h:
Removed unused function send_records_num
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 71908d2a958..dc9ab7bf795 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -645,16 +645,6 @@ err: } -bool Protocol::send_records_num(List<Item> *list, ulonglong records) -{ - char *pos; - char buff[20]; - pos=net_store_length(buff, (uint) list->elements); - pos=net_store_length(pos, records); - return my_net_write(&thd->net, buff,(uint) (pos-buff)); -} - - bool Protocol::write() { DBUG_ENTER("Protocol::write"); |