diff options
author | unknown <hf@genie.(none)> | 2002-10-23 16:55:35 +0500 |
---|---|---|
committer | unknown <hf@genie.(none)> | 2002-10-23 16:55:35 +0500 |
commit | cda34818c1d7d8e431e21b0adeef577b4c5df277 (patch) | |
tree | ec9ef8a0098211094f3e71740f69bfa5c73272d8 /sql/sql_table.cc | |
parent | a62ee2202f86c47f6a8d6d05948e181d73d56ba1 (diff) | |
download | mariadb-git-cda34818c1d7d8e431e21b0adeef577b4c5df277.tar.gz |
Some code improvements
libmysqld/lib_sql.cc:
embedded_send_row function trimmed
libmysqld/libmysqld.c:
code trimming process
sql/ha_myisam.cc:
SEND_ROW simplified
sql/mysql_priv.h:
SEND_ROW simplified
sql/mysqld.cc:
main() code trimming
sql/sql_handler.cc:
SEND_ROW macro simplified
sql/sql_show.cc:
SEND_ROW macro simplified
sql/sql_table.cc:
SEND_ROW macro simplified
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 803d4102563..9647dd005cf 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1017,7 +1017,7 @@ static int send_check_errmsg(THD* thd, TABLE_LIST* table, net_store_data(packet, "error"); net_store_data(packet, errmsg); thd->net.last_error[0]=0; - if (SEND_ROW(thd, &thd->net, 4, (char*) thd->packet.ptr(), packet->length())) + if (SEND_ROW(thd, 4, (char*) thd->packet.ptr(), packet->length())) return -1; return 1; } @@ -1211,7 +1211,7 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables, err_msg=ER(ER_CHECK_NO_SUCH_TABLE); net_store_data(packet, err_msg); thd->net.last_error[0]=0; - if (SEND_ROW(thd, &thd->net, field_list.elements, (char*) thd->packet.ptr(), + if (SEND_ROW(thd, field_list.elements, (char*) thd->packet.ptr(), packet->length())) goto err; continue; @@ -1226,7 +1226,7 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables, net_store_data(packet, buff); close_thread_tables(thd); table->table=0; // For query cache - if (SEND_ROW(thd, &thd->net, field_list.elements, (char*) thd->packet.ptr(), + if (SEND_ROW(thd, field_list.elements, (char*) thd->packet.ptr(), packet->length())) goto err; continue; @@ -1313,7 +1313,7 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables, } close_thread_tables(thd); table->table=0; // For query cache - if (SEND_ROW(thd, &thd->net, field_list.elements, + if (SEND_ROW(thd, field_list.elements, (char *)thd->packet.ptr(), thd->packet.length())) goto err; } |