aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-04-29 01:46:01 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-04-29 02:10:42 -0400
commit85549fad8324afc6e9358e98d75b8fdcc5faa416 (patch)
tree629f261b1de2c2b945e163b0244c638a2f45c761 /phpBB/includes/db
parent55ff5da70b6598218b032725f73de7c4f94a7c89 (diff)
downloadforums-85549fad8324afc6e9358e98d75b8fdcc5faa416.tar
forums-85549fad8324afc6e9358e98d75b8fdcc5faa416.tar.gz
forums-85549fad8324afc6e9358e98d75b8fdcc5faa416.tar.bz2
forums-85549fad8324afc6e9358e98d75b8fdcc5faa416.tar.xz
forums-85549fad8324afc6e9358e98d75b8fdcc5faa416.zip
[ticket/10003] Ported 1802b9ff9286a7fc24493e71b3432816cbdbfcd8 to db_tools.
Most of it was already in db_tools, these changes could have applied to code that did not exist in db_tools at the time of the commit. PHPBB3-10003
Diffstat (limited to 'phpBB/includes/db')
-rw-r--r--phpBB/includes/db/db_tools.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/db_tools.php b/phpBB/includes/db/db_tools.php
index 01061c77b1..fd09ccde3f 100644
--- a/phpBB/includes/db/db_tools.php
+++ b/phpBB/includes/db/db_tools.php
@@ -1130,7 +1130,7 @@ class phpbb_db_tools
*/
function sql_index_exists($table_name, $index_name)
{
- if ($this->sql_layer == 'mssql')
+ if ($this->sql_layer == 'mssql' || $this->sql_layer == 'mssqlnative')
{
$sql = "EXEC sp_statistics '$table_name'";
$result = $this->db->sql_query($sql);
@@ -1235,7 +1235,7 @@ class phpbb_db_tools
*/
function sql_unique_index_exists($table_name, $index_name)
{
- if ($this->sql_layer == 'mssql')
+ if ($this->sql_layer == 'mssql' || $this->sql_layer == 'mssqlnative')
{
$sql = "EXEC sp_statistics '$table_name'";
$result = $this->db->sql_query($sql);