summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-04-29 12:24:14 +0300
committermonty@hundin.mysql.fi <>2002-04-29 12:24:14 +0300
commit9d0f8a1b5f500816634faae9568c19106ba9962f (patch)
tree5622a481c28e42581626ad05e58e4afaab88bd0f /sql/sql_insert.cc
parent36f81cb5f06202b02500e72e37672f2dc000c5b0 (diff)
downloadmariadb-git-9d0f8a1b5f500816634faae9568c19106ba9962f.tar.gz
Fixed that enable-reads-from-master and repl-parse-query works in option files.
Fixed slowdown problem on win98 Fixed syntax for ALTER TABLE .. RENAME
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 69fc7c00955..6cc4f258c65 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -311,7 +311,9 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields,
}
thd->proc_info="end";
if (info.copied || info.deleted)
+ {
query_cache_invalidate3(thd, table_list, 1);
+ }
table->time_stamp=save_time_stamp; // Restore auto timestamp ptr
table->next_number_field=0;
thd->count_cuted_fields=0;
@@ -1330,7 +1332,9 @@ void select_insert::send_error(uint errcode,const char *err)
table->file->activate_all_index(thd);
ha_rollback_stmt(thd);
if (info.copied || info.deleted)
+ {
query_cache_invalidate3(thd, table, 1);
+ }
}
@@ -1343,8 +1347,9 @@ bool select_insert::send_eof()
if ((error2=ha_autocommit_or_rollback(thd,error)) && ! error)
error=error2;
if (info.copied || info.deleted)
+ {
query_cache_invalidate3(thd, table, 1);
-
+ }
if (error)
{
table->file->print_error(error,MYF(0));