aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/postgres.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-02 11:10:02 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-07-02 11:10:02 +0200
commita8cf926566c32097c61c14210990f2a7229ddfc7 (patch)
treea2ef69dc5c1fbf2cfd000b99abada7e16153c7ba /phpBB/includes/db/postgres.php
parent0fd02035d8dd12db4a793af5be564911fca4f900 (diff)
downloadforums-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/postgres.php')
-rw-r--r--phpBB/includes/db/postgres.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/phpBB/includes/db/postgres.php b/phpBB/includes/db/postgres.php
index c3116601ae..a31181b4d4 100644
--- a/phpBB/includes/db/postgres.php
+++ b/phpBB/includes/db/postgres.php
@@ -157,19 +157,6 @@ class dbal_postgres 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 text manually
- $sql_case = 'CASE WHEN ' . $condition;
- $sql_case .= ' THEN CAST(' . $action_true . ' AS TEXT)';
- $sql_case .= ($action_false !== false) ? ' ELSE CAST(' . $action_false . ' AS TEXT)' : '';
- $sql_case .= ' END';
- return $sql_case;
- }
-
- /**
- * {@inheritDoc}
- */
function sql_concatenate($expr1, $expr2)
{
return $expr1 . ' || ' . $expr2;