diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-07-02 11:10:02 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-07-02 11:10:02 +0200 |
commit | a8cf926566c32097c61c14210990f2a7229ddfc7 (patch) | |
tree | a2ef69dc5c1fbf2cfd000b99abada7e16153c7ba /phpBB/includes/db/mssql.php | |
parent | 0fd02035d8dd12db4a793af5be564911fca4f900 (diff) | |
download | forums-a8cf926566c32097c61c14210990f2a7229ddfc7.tar forums-a8cf926566c32097c61c14210990f2a7229ddfc7.tar.gz forums-a8cf926566c32097c61c14210990f2a7229ddfc7.tar.bz2 forums-a8cf926566c32097c61c14210990f2a7229ddfc7.tar.xz forums-a8cf926566c32097c61c14210990f2a7229ddfc7.zip |
[ticket/10942] Require same data type and do not cast expressions automatically
PHPBB3-10942
Diffstat (limited to 'phpBB/includes/db/mssql.php')
-rw-r--r-- | phpBB/includes/db/mssql.php | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/phpBB/includes/db/mssql.php b/phpBB/includes/db/mssql.php index 8888bb3939..d24cbf329f 100644 --- a/phpBB/includes/db/mssql.php +++ b/phpBB/includes/db/mssql.php @@ -94,19 +94,6 @@ class dbal_mssql extends dbal /** * {@inheritDoc} */ - function sql_case($condition, $action_true, $action_false = false) - { - // To ensure, that both expressions have the same type, we cast them to varchar manually - $sql_case = 'CASE WHEN ' . $condition; - $sql_case .= ' THEN CAST(' . $action_true . ' AS VARCHAR)'; - $sql_case .= ($action_false !== false) ? ' ELSE CAST(' . $action_false . ' AS VARCHAR)' : ''; - $sql_case .= ' END'; - return $sql_case; - } - - /** - * {@inheritDoc} - */ function sql_concatenate($expr1, $expr2) { return $expr1 . ' + ' . $expr2; |