aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2014-11-30 16:52:36 +0700
committerrxu <rxu@mail.ru>2014-11-30 16:52:36 +0700
commit2f92bc38e6ca81e64f0846b97df2b13310721453 (patch)
tree7405e4960e7a423cd5b0886af877a737029791b2 /phpBB/phpbb/db
parentac8b07ddd934c9bcda0d5ce38fb7e438083afc7b (diff)
downloadforums-2f92bc38e6ca81e64f0846b97df2b13310721453.tar
forums-2f92bc38e6ca81e64f0846b97df2b13310721453.tar.gz
forums-2f92bc38e6ca81e64f0846b97df2b13310721453.tar.bz2
forums-2f92bc38e6ca81e64f0846b97df2b13310721453.tar.xz
forums-2f92bc38e6ca81e64f0846b97df2b13310721453.zip
[ticket/13406] Add a space between the index name and columns list
Currently there's no space between the index name and columns list when generating ADD INDEX sql query for MySQL DBMSes. This may cause errors on earlier MySQL versions like 3.23. PHPBB3-13406
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/tools.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php
index c8d25f23a2..f523b39fb3 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -2175,7 +2175,7 @@ class tools
}
// no break
case 'mysql_41':
- $statements[] = 'ALTER TABLE ' . $table_name . ' ADD INDEX ' . $index_name . '(' . implode(', ', $column) . ')';
+ $statements[] = 'ALTER TABLE ' . $table_name . ' ADD INDEX ' . $index_name . ' (' . implode(', ', $column) . ')';
break;
case 'mssql':