1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 11:13:59 +02:00

[ticket/10942] Require same data type and do not cast expressions automatically

PHPBB3-10942
This commit is contained in:
Joas Schilling
2012-07-02 11:10:02 +02:00
parent 0fd02035d8
commit a8cf926566
6 changed files with 2 additions and 65 deletions

View File

@@ -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