diff options
author | unknown <kostja@vajra.(none)> | 2007-05-16 10:21:39 +0400 |
---|---|---|
committer | unknown <kostja@vajra.(none)> | 2007-05-16 10:21:39 +0400 |
commit | 5af1df9c76b62b838116235b4d0bfb6f638cf702 (patch) | |
tree | 2295de4497bb7d779e22313f151b6bcdd25ce092 /sql/sp_head.cc | |
parent | d71f4248aa284eb73c882dff033b1eca4ac158ad (diff) | |
parent | 7e628372e9b21e0355b9b8145e12a0ca31e98260 (diff) | |
download | mariadb-git-5af1df9c76b62b838116235b4d0bfb6f638cf702.tar.gz |
Merge vajra.(none):/opt/local/work/mysql-5.0-21483
into vajra.(none):/opt/local/work/mysql-5.1-21483
sql/sp_head.cc:
Auto merged
sql/sql_base.cc:
Auto merged
sql/sql_lex.h:
Auto merged
mysql-test/r/insert.result:
Manual merge.
mysql-test/t/insert.test:
Manual merge.
sql/sql_insert.cc:
Manual merge.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 320595bd723..2f78f0b24dd 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -3515,6 +3515,14 @@ sp_head::merge_table_list(THD *thd, TABLE_LIST *table, LEX *lex_for_tmp_check) tname[tlen]= '\0'; /* + Upgrade the lock type because this table list will be used + only in pre-locked mode, in which DELAYED inserts are always + converted to normal inserts. + */ + if (table->lock_type == TL_WRITE_DELAYED) + table->lock_type= TL_WRITE; + + /* We ignore alias when we check if table was already marked as temporary (and therefore should not be prelocked). Otherwise we will erroneously treat table with same name but with different alias as non-temporary. |