diff options
author | unknown <monty@hundin.mysql.fi> | 2002-01-16 23:47:50 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-01-16 23:47:50 +0200 |
commit | 879e892d661b0236850b0c5b0adf87a1bb3d507a (patch) | |
tree | 099bf6ac83b55d56f0586aaed92288dda4595377 /sql/handler.cc | |
parent | 4d638f1e3532a39c1b3799a69bc1cab0d4b8a1e4 (diff) | |
parent | 088582035efe96857e6453a72443ae1d8049fc3a (diff) | |
download | mariadb-git-879e892d661b0236850b0c5b0adf87a1bb3d507a.tar.gz |
Merge
sql/sql_update.cc:
SCCS merged
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 52d65edf0d4..e56bdb916bf 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -425,9 +425,8 @@ int handler::ha_open(const char *name, int mode, int test_if_locked) { if (table->db_options_in_use & HA_OPTION_READ_ONLY_DATA) table->db_stat|=HA_READ_ONLY; - } - if (!error) - { + (void) extra(HA_EXTRA_NO_READCHECK); // Not needed in SQL + if (!alloc_root_inited(&table->mem_root)) // If temporary table ref=(byte*) sql_alloc(ALIGN_SIZE(ref_length)*2); else |