+ [misc] add andCondition.

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