當使用匹配/對一個事務中,它似乎並沒有從臨時未提交的數據進行查詢:匹配/反對和交易
start transaction;
insert into feed_full_text (feed_id, full_text) values (5000008, "lorem ipsum");
select feed_id, full_text
from feed_full_text
where feed_id = 5000008 and match(full_text) against("lorem" in boolean mode)
order by feed_id desc
limit 1;
commit
不返回任何結果,但是:
start transaction;
insert into feed_full_text (feed_id, full_text) values (5000008, "lorem ipsum");
select feed_id, full_text
from feed_full_text
where feed_id = 5000008
order by feed_id desc
limit 1;
commit
返回剛插入的行,以及:
insert into feed_full_text (feed_id, full_text) values (5000008, "lorem ipsum");
select feed_id, full_text
from feed_full_text
where feed_id = 5000008 and match(full_text) against("lorem" in boolean mode)
order by feed_id desc
limit 1;
也返回該行。這是一個錯誤還是我錯過了什麼?我在使用5.7.11版本支持InnoDB中的全文索引。
可能重複的[是否可以插入,然後選擇一個接一個插入的行?](http://stackoverflow.com/questions/14201947/is-it-possible-to-insert-and-然後選擇插入的行一個接一個) –