aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/dbal.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/dbal.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/dbal.php')
-rw-r--r--phpBB/includes/db/dbal.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php
index 9eb74ab617..8dbcd73b58 100644
--- a/phpBB/includes/db/dbal.php
+++ b/phpBB/includes/db/dbal.php
@@ -286,6 +286,8 @@ class dbal
/**
* Build a case expression
*
+ * Note: The two statements action_true and action_false must have the same data type (int, vchar, ...) in the database!
+ *
* @param string $condition The condition which must be true, to use action_true rather then action_else
* @param string $action_true SQL expression that is used, if the condition is true
* @param string $action_else SQL expression that is used, if the condition is false, optional