aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mssql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/mssql.php')
-rw-r--r--phpBB/includes/db/mssql.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php
index bf6190c79c..a6c8d26a4d 100644
--- a/phpBB/includes/db/mssql.php
+++ b/phpBB/includes/db/mssql.php
@@ -303,6 +303,21 @@ class dbal_mssql extends dbal
}
}
+ function sql_handle_data($type, $table, $data, $where = '')
+ {
+ if ($type === 'UPDATE')
+ {
+ $this->sql_query('INSERT INTO ' . $table . ' ' .
+ $this->sql_build_array('INSERT', $data));
+ }
+ else
+ {
+ $this->sql_query('UPDATE ' . $table . '
+ SET ' . $db->sql_build_array('UPDATE', $data) .
+ $where);
+ }
+ }
+
/**
* Build LIKE expression
* @access private