From 79492d41109eba2932c020bb5c9a90f19aac2321 Mon Sep 17 00:00:00 2001 From: Patrick Webster Date: Sun, 23 Mar 2014 22:17:52 -0500 Subject: [PATCH] [ticket/9725] Code sniffer fixes PHPBB3-9725 --- phpBB/includes/db/db_tools.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/phpBB/includes/db/db_tools.php b/phpBB/includes/db/db_tools.php index 5645d04867..8dce769395 100644 --- a/phpBB/includes/db/db_tools.php +++ b/phpBB/includes/db/db_tools.php @@ -472,7 +472,7 @@ class phpbb_db_tools { if (!isset($table_data['PRIMARY_KEY'])) { - $table_data['COLUMNS']['mssqlindex'] = array('UINT', NULL, 'auto_increment'); + $table_data['COLUMNS']['mssqlindex'] = array('UINT', null, 'auto_increment'); $table_data['PRIMARY_KEY'] = 'mssqlindex'; } } @@ -1819,7 +1819,7 @@ class phpbb_db_tools $result = $this->db->sql_query($sql); $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - + // Remove default constraints if ($row['mssql_version'][0] == '8') // SQL Server 2000 { @@ -1851,7 +1851,7 @@ class phpbb_db_tools $result = $this->db->sql_query($sql); $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - + if ($row) { $statements[] = 'ALTER TABLE [' . $table_name . '] DROP CONSTRAINT [' . $row['def_name'] . ']'; @@ -2348,7 +2348,7 @@ class phpbb_db_tools $result = $this->db->sql_query($sql); $row = $this->db->sql_fetchrow($result); $this->db->sql_freeresult($result); - + // Using TRANSACT-SQL for this statement because we do not want to have colliding data if statements are executed at a later stage if ($row['mssql_version'][0] == '8') // SQL Server 2000 {