diff options
author | rxu <rxu@mail.ru> | 2014-11-30 16:52:36 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2014-11-30 16:52:36 +0700 |
commit | 2f92bc38e6ca81e64f0846b97df2b13310721453 (patch) | |
tree | 7405e4960e7a423cd5b0886af877a737029791b2 /phpBB/phpbb/db | |
parent | ac8b07ddd934c9bcda0d5ce38fb7e438083afc7b (diff) | |
download | forums-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.php | 2 |
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': |