+ [misc] add orCondition.

This commit is contained in:
qixinzhi
2024-09-04 16:10:43 +08:00
committed by 代婷婷
parent 67337c9141
commit c77e4614c0
+9
View File
@@ -176,6 +176,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();