mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
- Bug #4028
git-svn-id: file:///svn/phpbb/trunk@6333 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bb3034eb26
commit
3f6318f2b1
1 changed files with 11 additions and 3 deletions
|
@ -214,9 +214,17 @@ class acp_reasons
|
||||||
case 'mssql':
|
case 'mssql':
|
||||||
case 'mssql_odbc':
|
case 'mssql_odbc':
|
||||||
// Change the reports using this reason to 'other'
|
// Change the reports using this reason to 'other'
|
||||||
$sql = 'UPDATE ' . REPORTS_TABLE . '
|
$sql = "DECLARE @ptrval binary(16)
|
||||||
SET reason_id = ' . $other_reason_id . ", report_text = '" . $db->sql_escape($reason_row['reason_description']) . "\n\n' + report_text
|
|
||||||
WHERE reason_id = $reason_id";
|
SELECT @ptrval = TEXTPTR(report_text)
|
||||||
|
FROM " . REPORTS_TABLE . "
|
||||||
|
WHERE reason_id = " . $reason_id . "
|
||||||
|
|
||||||
|
UPDATETEXT " . REPORTS_TABLE . ".report_text @ptrval 0 0 '" . $db->sql_escape($reason_row['reason_description']) . "\n\n'"
|
||||||
|
|
||||||
|
'UPDATE ' . REPORTS_TABLE . '
|
||||||
|
SET reason_id = ' . $other_reason_id . "
|
||||||
|
WHERE reason_id = $reason_id";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// Teh standard
|
// Teh standard
|
||||||
|
|
Loading…
Add table
Reference in a new issue