1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

Better support for nested transactions...

git-svn-id: file:///svn/phpbb/trunk@7469 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2007-05-05 10:22:24 +00:00
parent eee1dedc13
commit a5704a0b01
11 changed files with 48 additions and 36 deletions

View File

@@ -1128,9 +1128,9 @@ class fulltext_native extends search_backend
{
$sql_ary[] = array('word_text' => $word, 'word_count' => 0);
}
$db->return_on_error = true;
$db->sql_return_on_error(true);
$db->sql_multi_insert(SEARCH_WORDLIST_TABLE, $sql_ary);
$db->return_on_error = false;
$db->sql_return_on_error(false);
}
unset($new_words, $sql_ary);
}
@@ -1168,7 +1168,7 @@ class fulltext_native extends search_backend
}
}
$db->return_on_error = true;
$db->sql_return_on_error(true);
foreach ($words['add'] as $word_in => $word_ary)
{
$title_match = ($word_in == 'title') ? 1 : 0;
@@ -1187,7 +1187,7 @@ class fulltext_native extends search_backend
$db->sql_query($sql);
}
}
$db->return_on_error = false;
$db->sql_return_on_error(false);
$db->sql_transaction('commit');