mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 12:58:52 +00:00
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:
parent
28b38f0547
commit
0daf91e668
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue