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:
2017-07-19 10:30:44 +00:00
parent 88f394fb72
commit 0ac0fa75a5

View File

@@ -1884,6 +1884,11 @@ class dblayeroo
/* {{{ */
{
$this->debugLog ("Entering whereAddParenthesisOpen ()");
if (count ($this->whereExpression) &&
end ($this->whereExpression) !== "AND" &&
end ($this->whereExpression) !== "OR" &&
end ($this->whereExpression) !== "(")
$this->whereExpression[] = "AND";
$this->whereExpression[] = "(";
return $this;
}