summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorhf@genie.(none) <>2002-10-23 16:55:35 +0500
committerhf@genie.(none) <>2002-10-23 16:55:35 +0500
commita6b0579fcd7de82b656a2848236a2770fd8e7506 (patch)
treeec9ef8a0098211094f3e71740f69bfa5c73272d8 /sql/sql_table.cc
parent8a88791fb1a6c01742c8558369a8e1822da0b30c (diff)
downloadmariadb-git-a6b0579fcd7de82b656a2848236a2770fd8e7506.tar.gz
Some code improvements
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc8
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;
}