+ [misc] add orCondition.

This commit is contained in:
qixinzhi
2024-09-06 09:06:59 +08:00
committed by 曹延义
parent 2a0865740b
commit a3f849a948
+9
View File
@@ -320,6 +320,15 @@ class sqlparser
return $condition;
}
public function orCondition()
{
$condition = new PhpMyAdmin\SqlParser\Components\Condition();
$condition->isOperator = true;
$condition->expr = 'OR';
return $condition;
}
public function getCondition($tableA = null, $columnA = null, $operator = '', $tableB = null, $columnB = null, $group = 1)
{
$condition = new PhpMyAdmin\SqlParser\Components\Condition();