summaryrefslogtreecommitdiff
path: root/includes/database/query.inc
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-12-24 17:23:52 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2011-12-24 17:23:52 -0800
commit9a519b179f0de487a091490a344cf07f63b683f8 (patch)
tree8845bf6f1fa975bf7aa903eec0f282f0c7411100 /includes/database/query.inc
parent1e126deba866db54fe1f55b0211bb7c6341e6612 (diff)
downloadbrdo-9a519b179f0de487a091490a344cf07f63b683f8.tar.gz
brdo-9a519b179f0de487a091490a344cf07f63b683f8.tar.bz2
Issue #1371256 by ayelet_Cr, oriol_e9g: Document that QueryConditionInterface::condition() should not be used to add NULL conditions.
Diffstat (limited to 'includes/database/query.inc')
-rw-r--r--includes/database/query.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/includes/database/query.inc b/includes/database/query.inc
index c77968767..6020b0ea5 100644
--- a/includes/database/query.inc
+++ b/includes/database/query.inc
@@ -22,6 +22,9 @@ interface QueryConditionInterface {
* parameters, they are taken as $field and $value with $operator having a
* value of IN if $value is an array and = otherwise.
*
+ * Do not use this method to test for NULL values. Instead, use
+ * QueryConditionInterface::isNull() or QueryConditionInterface::isNotNull().
+ *
* @param $field
* The name of the field to check. If you would like to add a more complex
* condition involving operators or functions, use where().
@@ -36,6 +39,9 @@ interface QueryConditionInterface {
*
* @return QueryConditionInterface
* The called object.
+ *
+ * @see QueryConditionInterface::isNull()
+ * @see QueryConditionInterface::isNotNull()
*/
public function condition($field, $value = NULL, $operator = NULL);