+ [misc] add andCondition.

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