summaryrefslogtreecommitdiff
path: root/libmysqld
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2003-02-10 17:59:16 +0200
committerunknown <monty@mashka.mysql.fi>2003-02-10 17:59:16 +0200
commit96273457dd172291892b279c420a770e64e0a5a3 (patch)
treeafc92b80727719cbb09f63c506e547cb0aed94f4 /libmysqld
parented95131e0637d6adb280e3501134dbf7496da3a4 (diff)
downloadmariadb-git-96273457dd172291892b279c420a770e64e0a5a3.tar.gz
Move tmp_table_used to THD
Optimize depending sub querys Remove valgrind warnings libmysqld/lib_sql.cc: Better way to reset errors mysql-test/mysql-test-run.sh: Remove wrong ` mysql-test/r/subselect.result: Don't use table t1 mysql-test/t/subselect.test: Don't use table t1 sql/item.cc: Indentation fix sql/item.h: optimize depending sub querys sql/item_func.cc: Remove warning for uninitalized data sql/item_row.cc: Remove warning sql/item_strfunc.h: Fixed memory overrun sql/item_subselect.cc: Better debugging names sql/log_event.cc: Move tmp_table_used to THD sql/sql_base.cc: Move tmp_table_used to THD sql/sql_class.cc: Move tmp_table_used to THD sql/sql_class.h: Move tmp_table_used to THD sql/sql_lex.cc: Move tmp_table_used to THD sql/sql_lex.h: Move tmp_table_used to THD sql/sql_parse.cc: Move tmp_table_used to THD sql/sql_select.cc: optimize depending sub querys sql/sql_table.cc: Move tmp_table_used to THD
Diffstat (limited to 'libmysqld')
-rw-r--r--libmysqld/lib_sql.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc
index 714d9cc02f7..a1fbaaae631 100644
--- a/libmysqld/lib_sql.cc
+++ b/libmysqld/lib_sql.cc
@@ -63,8 +63,7 @@ my_bool simple_command(MYSQL *mysql,enum enum_server_command command,
}
/* Clear result variables */
- thd->net.last_error[0]=0;
- thd->net.last_errno=0;
+ thd->clear_error();
mysql->affected_rows= ~(my_ulonglong) 0;
thd->store_globals(); // Fix if more than one connect