summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-04-13 12:22:20 +0200
committerunknown <msvensson@neptunus.(none)>2005-04-13 12:22:20 +0200
commit2189e5e7bd8530eeb1f866a6304651f54cdcad75 (patch)
tree0c4e2952b0743607c4188361b2f0b86fca004c16 /sql
parent5630f0731ab020471108c67e7ae962ba6eaef625 (diff)
downloadmariadb-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')
-rw-r--r--sql/protocol.cc10
-rw-r--r--sql/protocol.h1
2 files changed, 0 insertions, 11 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");
diff --git a/sql/protocol.h b/sql/protocol.h
index ad2593d3ab7..de379db541b 100644
--- a/sql/protocol.h
+++ b/sql/protocol.h
@@ -54,7 +54,6 @@ public:
enum { SEND_NUM_ROWS= 1, SEND_DEFAULTS= 2, SEND_EOF= 4 };
virtual bool send_fields(List<Item> *list, uint flags);
- bool send_records_num(List<Item> *list, ulonglong records);
bool store(I_List<i_string> *str_list);
bool store(const char *from, CHARSET_INFO *cs);
String *storage_packet() { return packet; }