diff options
author | unknown <monty@hundin.mysql.fi> | 2002-04-29 12:24:14 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-04-29 12:24:14 +0300 |
commit | 4c76a1c8961457d428e0f1734a9f239de1827260 (patch) | |
tree | 5622a481c28e42581626ad05e58e4afaab88bd0f /sql/sql_insert.cc | |
parent | 2ddd3d219d2cc797b236faaab95449905b4402b2 (diff) | |
download | mariadb-git-4c76a1c8961457d428e0f1734a9f239de1827260.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
Docs/manual.texi:
changelog
libmysql/libmysql.c:
Fixed that enable-reads-from-master and repl-parse-query works in option files.
myisam/ft_boolean_search.c:
Portability fixes
mysys/my_thr_init.c:
cleanup
sql/sql_base.cc:
Fixed slowdown problem on win98
sql/sql_delete.cc:
Removed compiler warnings
sql/sql_insert.cc:
Removed compiler warnings
sql/sql_update.cc:
Removed compiler warnings
sql/sql_yacc.yy:
Fixed syntax for ALTER TABLE .. RENAME
vio/vio.c:
Added test of OS2
vio/viosocket.c:
cleanup
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 7 |
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)); |