aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-31 16:07:05 +0200
committerMarc Alexander <admin@m-a-styles.de>2016-03-31 16:07:05 +0200
commit48283d7c62f819769c35e5ef36367e212d47d008 (patch)
treebcb2a00e31c4e946ac56c8c759a8c1cca585eeda
parent3f5a873e4cff0fd6f9ab2dd4fad1179009abed4b (diff)
downloadforums-48283d7c62f819769c35e5ef36367e212d47d008.tar
forums-48283d7c62f819769c35e5ef36367e212d47d008.tar.gz
forums-48283d7c62f819769c35e5ef36367e212d47d008.tar.bz2
forums-48283d7c62f819769c35e5ef36367e212d47d008.tar.xz
forums-48283d7c62f819769c35e5ef36367e212d47d008.zip
[ticket/14532] Do not escape column default in mssql
The column default shouldn't be escaped for mssql. This is a regression from 743d816631292a2081af4c5f7fc2fad2aff17c58. Prior to that commit, the default value for the column was not escaped. Escaping it will cause SQL errors while altering columns. PHPBB3-14532
-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 e76e7b0e18..832a0c510c 100644
--- a/phpBB/phpbb/db/tools.php
+++ b/phpBB/phpbb/db/tools.php
@@ -2340,7 +2340,7 @@ class tools
if (!empty($column_data['default']))
{
// Add new default value constraint
- $statements[] = 'ALTER TABLE [' . $table_name . '] ADD CONSTRAINT [DF_' . $table_name . '_' . $column_name . '_1] ' . $this->db->sql_escape($column_data['default']) . ' FOR [' . $column_name . ']';
+ $statements[] = 'ALTER TABLE [' . $table_name . '] ADD CONSTRAINT [DF_' . $table_name . '_' . $column_name . '_1] ' . $column_data['default'] . ' FOR [' . $column_name . ']';
}
if (!empty($indexes))