whoopsie ... IGNORE only valid for MySQL

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@4423 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-08-23 01:16:13 +00:00
parent 35948b18b7
commit 5be808dc97

View file

@ -240,7 +240,7 @@ function add_search_words($mode, $post_id, $post_text, $post_title = '')
if ( $match_sql != '' ) if ( $match_sql != '' )
{ {
$sql = "INSERT IGNORE INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match) $sql = "INSERT INTO " . SEARCH_MATCH_TABLE . " (post_id, word_id, title_match)
SELECT $post_id, word_id, $title_match SELECT $post_id, word_id, $title_match
FROM " . SEARCH_WORD_TABLE . " FROM " . SEARCH_WORD_TABLE . "
WHERE word_text IN ($match_sql)"; WHERE word_text IN ($match_sql)";