diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2014-03-30 15:37:35 +0200 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2014-03-30 15:42:04 +0200 |
commit | 55c1b49bedefa74cfeaecf66541c2d7838da78b8 (patch) | |
tree | 1e7bf7e623f6c09ff60eac3951e3a7892e5c0feb /phpBB | |
parent | 3e909711d2b8115f6a53a46be1e702a7fdc8a0c0 (diff) | |
download | forums-55c1b49bedefa74cfeaecf66541c2d7838da78b8.tar forums-55c1b49bedefa74cfeaecf66541c2d7838da78b8.tar.gz forums-55c1b49bedefa74cfeaecf66541c2d7838da78b8.tar.bz2 forums-55c1b49bedefa74cfeaecf66541c2d7838da78b8.tar.xz forums-55c1b49bedefa74cfeaecf66541c2d7838da78b8.zip |
[ticket/12330] Fix create index in db tools on mssql
PHPBB3-12330
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/phpbb/db/tools.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/db/tools.php b/phpBB/phpbb/db/tools.php index 8631c11d0e..25c495b80b 100644 --- a/phpBB/phpbb/db/tools.php +++ b/phpBB/phpbb/db/tools.php @@ -2190,7 +2190,7 @@ class tools case 'mssql': case 'mssqlnative': - $statements[] = 'CREATE UNIQUE INDEX ' . $index_name . ' ON ' . $table_name . '(' . implode(', ', $column) . ')'; + $statements[] = 'CREATE UNIQUE INDEX [' . $index_name . '] ON [' . $table_name . ']([' . implode('], [', $column) . '])'; break; } @@ -2243,7 +2243,7 @@ class tools case 'mssql': case 'mssqlnative': - $statements[] = 'CREATE INDEX ' . $index_name . ' ON ' . $table_name . '(' . implode(', ', $column) . ')'; + $statements[] = 'CREATE INDEX [' . $index_name . '] ON [' . $table_name . ']([' . implode('], [', $column) . '])'; break; } |