dblayeroo: whereAddParenthesisOpen: Add automatically AND before if there is no already defined operator
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3817 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -1884,6 +1884,11 @@ class dblayeroo
|
|||||||
/* {{{ */
|
/* {{{ */
|
||||||
{
|
{
|
||||||
$this->debugLog ("Entering whereAddParenthesisOpen ()");
|
$this->debugLog ("Entering whereAddParenthesisOpen ()");
|
||||||
|
if (count ($this->whereExpression) &&
|
||||||
|
end ($this->whereExpression) !== "AND" &&
|
||||||
|
end ($this->whereExpression) !== "OR" &&
|
||||||
|
end ($this->whereExpression) !== "(")
|
||||||
|
$this->whereExpression[] = "AND";
|
||||||
$this->whereExpression[] = "(";
|
$this->whereExpression[] = "(";
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user