mssql-odbc doesn't seem to like ignoring the duplicate index (even though MSSQL has been told to ... hmm)

git-svn-id: file:///svn/phpbb/trunk@2270 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2002-03-05 02:21:22 +00:00
parent 28b38f0547
commit 0daf91e668

View file

@ -172,6 +172,7 @@ function add_search_words($post_id, $post_text, $post_title = "")
{
case 'postgresql':
case 'msaccess':
case 'mssql-odbc':
case 'oracle':
case 'db2':
$sql = "SELECT word_id, word_text
@ -208,7 +209,6 @@ function add_search_words($post_id, $post_text, $post_title = "")
$value_sql .= ( ( $value_sql != "" ) ? ", " : "" ) . "('" . $word[$i] . "')";
break;
case 'mssql':
case 'mssql-odbc':
$value_sql .= ( ( $value_sql != "" ) ? " UNION ALL " : "" ) . "SELECT '" . $word[$i] . "'";
break;
default:
@ -233,7 +233,6 @@ function add_search_words($post_id, $post_text, $post_title = "")
VALUES $value_sql";
break;
case 'mssql':
case 'mssql-odbc':
$sql = "INSERT INTO " . SEARCH_WORD_TABLE . " (word_text)
$value_sql";
break;