From 171807213f431f9b4c028a5c5e1b079600d7fc52 Mon Sep 17 00:00:00 2001 From: Rob House <> Date: Sat, 1 May 2010 01:30:51 +0100 Subject: [PATCH 1/5] [ticket/9582] Custom profile fields cannot be created under MSSQL native. PHPBB3-9565 PHPBB3-9582 --- phpBB/includes/acp/acp_profile.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php index fc08c7e8e8..2288a0728b 100644 --- a/phpBB/includes/acp/acp_profile.php +++ b/phpBB/includes/acp/acp_profile.php @@ -1480,6 +1480,7 @@ class acp_profile case 'mssql': case 'mssql_odbc': + case 'mssqlnative': // We are defining the biggest common value, because of the possibility to edit the min/max values of each field. $sql = 'ALTER TABLE [' . PROFILE_FIELDS_DATA_TABLE . "] ADD [$field_ident] "; From 57394261364f9fdddded08964d2b7e3842057b2a Mon Sep 17 00:00:00 2001 From: Rob House <> Date: Sat, 1 May 2010 01:37:01 +0100 Subject: [PATCH 2/5] [ticket/9582] Unable to edit CPFs from UCP under MSSQL native driver. PHPBB3-9566 PHPBB3-9582 --- phpBB/includes/functions_profile_fields.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 61e3587158..fa1cc98e10 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -366,6 +366,7 @@ class custom_profile case 'sqlite': case 'mssql': case 'mssql_odbc': + case 'mssqlnative': $right_delim = ']'; $left_delim = '['; break; From a20576fdd46d1fddb0dbdaca1a537e44cb7ebb10 Mon Sep 17 00:00:00 2001 From: Rob House <> Date: Sat, 1 May 2010 01:41:06 +0100 Subject: [PATCH 3/5] [ticket/9582] Removing a report reason leaves reports with an unknown reason under MSSQL native. PHPBB3-9564 PHPBB3-9582 --- phpBB/includes/acp/acp_reasons.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/acp/acp_reasons.php b/phpBB/includes/acp/acp_reasons.php index 8d7bc88769..dbc9fcb6cc 100644 --- a/phpBB/includes/acp/acp_reasons.php +++ b/phpBB/includes/acp/acp_reasons.php @@ -233,6 +233,7 @@ class acp_reasons // Standard? What's that? case 'mssql': case 'mssql_odbc': + case 'mssqlnative': // Change the reports using this reason to 'other' $sql = "DECLARE @ptrval binary(16) From e95faaeb6845fb999a130497e954ff98d2515f43 Mon Sep 17 00:00:00 2001 From: Rob House <> Date: Sat, 1 May 2010 01:58:50 +0100 Subject: [PATCH 4/5] [ticket/9582] Advanced search cannot be accessed using MSSQL native. PHPBB3-9562 PHPBB3-9582 --- phpBB/search.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/search.php b/phpBB/search.php index ab2221a96e..7a9ab82f93 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -1155,6 +1155,7 @@ if ($auth->acl_get('a_search')) case 'mssql': case 'mssql_odbc': + case 'mssqlnative': $sql = 'SELECT search_time, search_keywords FROM ' . SEARCH_RESULTS_TABLE . ' WHERE DATALENGTH(search_keywords) > 0 From 11d097fc1a1bc2e539922cfa5d078bbcb74d4da8 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Sat, 1 May 2010 02:15:58 +0100 Subject: [PATCH 5/5] [ticket/9582] MSSQL native backups can now be restored. PHPBB3-9583 PHPBB3-9582 --- phpBB/includes/acp/acp_database.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php index abfad2b90b..0582d6204e 100644 --- a/phpBB/includes/acp/acp_database.php +++ b/phpBB/includes/acp/acp_database.php @@ -394,6 +394,7 @@ class acp_database case 'mssql': case 'mssql_odbc': + case 'mssqlnative': while (($sql = $fgetd($fp, "GO\n", $read, $seek, $eof)) !== false) { $db->sql_query($sql);